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 1RFdJ1-0004H7-3p for garchives@archives.gentoo.org; Mon, 17 Oct 2011 02:51:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9299021C06C; Mon, 17 Oct 2011 02:51:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5CED921C06C for ; Mon, 17 Oct 2011 02:51:49 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A66A81B400F for ; Mon, 17 Oct 2011 02:51:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DB86580042 for ; Mon, 17 Oct 2011 02:51:47 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <753d35cb6784fc361c9804800355ff8b6b70a247.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/repoman X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 753d35cb6784fc361c9804800355ff8b6b70a247 Date: Mon, 17 Oct 2011 02:51:47 +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: aa239e44e915329d95cc48d019ad2a80 commit: 753d35cb6784fc361c9804800355ff8b6b70a247 Author: Zac Medico gentoo org> AuthorDate: Mon Oct 17 02:51:00 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Oct 17 02:51:00 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D753d35cb repoman: handle subprocess bug with Python 3.1 --- bin/repoman | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/bin/repoman b/bin/repoman index efd8a01..ba810c6 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2466,7 +2466,15 @@ else: portage.writemsg_stdout("(%s)\n" % " ".join(add_cmd), noiselevel=3D-1) else: - add_cmd =3D [_unicode_encode(arg) for arg in add_cmd] + if not (sys.hexversion >=3D 0x3000000 and sys.hexversion < 0x3020000)= : + # Python 3.1 produces the following TypeError if raw bytes are + # passed to subprocess.call(): + # File "/usr/lib/python3.1/subprocess.py", line 646, in __init__ + # errread, errwrite) + # File "/usr/lib/python3.1/subprocess.py", line 1157, in _execute_= child + # raise child_exception + # TypeError: expected an object with the buffer interface + add_cmd =3D [_unicode_encode(arg) for arg in add_cmd] retcode =3D subprocess.call(add_cmd) if retcode !=3D os.EX_OK: logging.error(