From 61b4b9854495e0b6c134a2087c86141f85af1add Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 6 Apr 2010 09:56:23 -0700 Subject: Remove PORTAGE_USERNAME and PORTAGE_GROUPNAME support for now since antarus says he wants it to work via make.conf, requiring redesign. --- pym/portage/data.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pym/portage/data.py') diff --git a/pym/portage/data.py b/pym/portage/data.py index ff23dbe00..893663195 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -3,7 +3,6 @@ # Distributed under the terms of the GNU General Public License v2 import os, sys, pwd, grp, platform -from portage.const import PORTAGE_GROUPNAME, PORTAGE_USERNAME import portage portage.proxy.lazyimport.lazyimport(globals(), @@ -77,8 +76,8 @@ except KeyError: #Discover the uid and gid of the portage user/group try: - portage_uid = pwd.getpwnam(PORTAGE_USERNAME)[2] - portage_gid = grp.getgrnam(PORTAGE_GROUPNAME)[2] + portage_uid = pwd.getpwnam('portage')[2] + portage_gid = grp.getgrnam('portage')[2] if secpass < 1 and portage_gid in os.getgroups(): secpass=1 except KeyError: @@ -106,7 +105,7 @@ else: from subprocess import getstatusoutput except ImportError: from commands import getstatusoutput - mystatus, myoutput = getstatusoutput("id -G %s" % PORTAGE_USERNAME) + mystatus, myoutput = getstatusoutput("id -G %s" % 'portage') if mystatus == os.EX_OK: for x in myoutput.split(): try: -- cgit v1.2.3-1-g7c22