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 1RFpVk-0006pn-Jm for garchives@archives.gentoo.org; Mon, 17 Oct 2011 15:53:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84AF221C026; Mon, 17 Oct 2011 15:53:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4940E21C026 for ; Mon, 17 Oct 2011 15:53:48 +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 C03F41B403C for ; Mon, 17 Oct 2011 15:53:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B5FA880042 for ; Mon, 17 Oct 2011 15:53:46 +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: <85256ed31e67655530dc26a4a036bfda963e9722.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/utilities.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 85256ed31e67655530dc26a4a036bfda963e9722 Date: Mon, 17 Oct 2011 15:53:46 +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: 589213f95683124ef05883c450400b11 commit: 85256ed31e67655530dc26a4a036bfda963e9722 Author: Zac Medico gentoo org> AuthorDate: Mon Oct 17 15:53:29 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Oct 17 15:53:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D85256ed3 UpdateChangeLog: use struct_passwd attributes --- pym/repoman/utilities.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index e068749..588ca8d 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -538,9 +538,9 @@ def UpdateChangeLog(pkgdir, category, package, new, r= emoved, changed, msg, prete elif 'ECHANGELOG_USER' in os.environ: user =3D os.environ['ECHANGELOG_USER'] else: - (login, _, _, _, gecos, _, _) =3D pwd.getpwuid(os.getuid()) - gecos =3D gecos.split(',')[0] # bug #80011 - user =3D '%s <%s@gentoo.org>' % (gecos, login) + pwd_struct =3D pwd.getpwuid(os.getuid()) + gecos =3D pwd_struct.pw_gecos.split(',')[0] # bug #80011 + user =3D '%s <%s@gentoo.org>' % (gecos, pwd_struct.pw_name) =20 if '