From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R7zqL-0002MO-6A for garchives@archives.gentoo.org; Mon, 26 Sep 2011 01:18:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A31D21C04A; Mon, 26 Sep 2011 01:18:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5542A21C04A for ; Mon, 26 Sep 2011 01:18:39 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF5261B40CA for ; Mon, 26 Sep 2011 01:18:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D9A2280042 for ; Mon, 26 Sep 2011 01:18:37 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1160eeb2569486785c0568cd84090e4029cc0747.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/overlays/ X-VCS-Repository: proj/layman X-VCS-Files: layman/overlays/tar.py X-VCS-Directories: layman/overlays/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 1160eeb2569486785c0568cd84090e4029cc0747 Date: Mon, 26 Sep 2011 01:18:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2b2d9faaa15217607321cc02a769866d commit: 1160eeb2569486785c0568cd84090e4029cc0747 Author: dol-sen gmail com> AuthorDate: Mon Sep 26 01:17:11 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Sep 26 01:17:11 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D1160eeb2 fix a py3 failure, because the file was not opened in binary mode. --- layman/overlays/tar.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/layman/overlays/tar.py b/layman/overlays/tar.py index 5d66acc..c6f2443 100644 --- a/layman/overlays/tar.py +++ b/layman/overlays/tar.py @@ -118,7 +118,7 @@ class TarOverlay(OverlaySource): pkg =3D path([base, self.parent.name + ext]) =20 try: - out_file =3D open(pkg, 'w') + out_file =3D open(pkg, 'w+b') out_file.write(tar) out_file.close() except Exception, error: