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 1REnU2-0007D4-3r for garchives@archives.gentoo.org; Fri, 14 Oct 2011 19:31:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E9B521C139; Fri, 14 Oct 2011 19:31:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0249521C139 for ; Fri, 14 Oct 2011 19:31:41 +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 6C23D1B4018 for ; Fri, 14 Oct 2011 19:31:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9D36380042 for ; Fri, 14 Oct 2011 19:31:40 +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: <366e9f0dc05b063427235b567c5e0874db41cf6b.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: 366e9f0dc05b063427235b567c5e0874db41cf6b Date: Fri, 14 Oct 2011 19:31:40 +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: 6e74747af333799d9ab1e021baf7bf37 commit: 366e9f0dc05b063427235b567c5e0874db41cf6b Author: Zac Medico gentoo org> AuthorDate: Fri Oct 14 19:31:19 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Oct 14 19:31:19 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D366e9f0d repoman: handle unicode in echangelog args --- bin/repoman | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/repoman b/bin/repoman index 47ae974..11fb56a 100755 --- a/bin/repoman +++ b/bin/repoman @@ -73,7 +73,7 @@ from portage.process import find_binary, spawn from portage.output import bold, create_color_func, \ green, nocolor, red from portage.output import ConsoleStyleFile, StyleWriter -from portage.util import cmp_sort_key, writemsg_level +from portage.util import cmp_sort_key, writemsg_level, writemsg_stdout from portage.package.ebuild.digestgen import digestgen from portage.eapi import eapi_has_slot_deps, \ eapi_has_use_deps, eapi_has_strong_blocks, eapi_has_iuse_defaults, \ @@ -2444,9 +2444,13 @@ else: logging.info("calling echangelog for package %s" % x) echangelog_args =3D ["echangelog", "--vcs", vcs, changelog_msg] if options.pretend: - print("(%s)" % (" ".join(echangelog_args),)) + writemsg_stdout("(%s)\n" % (" ".join(echangelog_args),), + noiselevel=3D-1) continue - retcode =3D subprocess.call(echangelog_args, cwd=3Dcheckdir) + echangelog_args =3D [_unicode_encode(arg) for arg in echangelog_args] + echangelog_cwd =3D _unicode_encode(checkdir, + encoding=3D_encodings['fs'], errors=3D'strict') + retcode =3D subprocess.call(echangelog_args, cwd=3Dechangelog_cwd) if retcode !=3D os.EX_OK: logging.error("echangelog exited with '%s' status" % retcode) sys.exit(retcode)