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 1RZ9my-0002vV-0W for garchives@archives.gentoo.org; Fri, 09 Dec 2011 23:23:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC59321C048; Fri, 9 Dec 2011 23:23:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 98C6D21C048 for ; Fri, 9 Dec 2011 23:23:28 +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 E73301B4011 for ; Fri, 9 Dec 2011 23:23:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 324CE80042 for ; Fri, 9 Dec 2011 23:23:27 +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: <10689f11f50a5452dc7f2ead53aef998657a2917.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/data.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 10689f11f50a5452dc7f2ead53aef998657a2917 Date: Fri, 9 Dec 2011 23:23:27 +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: ce7c35e5-caf2-405f-aff8-2e8c4b7a893a X-Archives-Hash: 23b87d6e1714cf70d47f7aa8ba7dcfa5 commit: 10689f11f50a5452dc7f2ead53aef998657a2917 Author: Zac Medico gentoo org> AuthorDate: Fri Dec 9 23:23:16 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Dec 9 23:23:16 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D10689f11 data.py: grp/pwd struct attrs, not indexes --- pym/portage/data.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/data.py b/pym/portage/data.py index fa6970c..fe390a1 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -86,8 +86,8 @@ def _get_global(k): secpass =3D 2 #Discover the uid and gid of the portage user/group try: - portage_uid =3D pwd.getpwnam(_get_global('_portage_uname'))[2] - portage_gid =3D grp.getgrnam(_get_global('_portage_grpname'))[2] + portage_uid =3D pwd.getpwnam(_get_global('_portage_uname')).pw_uid + portage_gid =3D grp.getgrnam(_get_global('_portage_grpname')).gr_gid if secpass < 1 and portage_gid in os.getgroups(): secpass =3D 1 except KeyError: