Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 344307 | Differences between
and this patch

Collapse All | Expand All

(-)a/prefix-portage-2.2.01.15553/pym/portage/data.py (-2 / +5 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
4
5
import os, sys, pwd, grp, platform
5
import os, sys, pwd, grp, platform
6
from portage.const import PORTAGE_GROUPNAME, PORTAGE_USERNAME, rootuid, EPREFIX
6
from portage.const import * 
7
7
8
import portage
8
import portage
9
portage.proxy.lazyimport.lazyimport(globals(),
9
portage.proxy.lazyimport.lazyimport(globals(),
Lines 85-91 Link Here
85
#Discover the uid and gid of the portage user/group
85
#Discover the uid and gid of the portage user/group
86
try:
86
try:
87
	portage_uid = pwd.getpwnam(_portage_uname)[2]
87
	portage_uid = pwd.getpwnam(_portage_uname)[2]
88
	portage_gid = grp.getgrnam(_portage_grpname)[2]
88
	if _portage_grpname.isdigit():
89
		portage_gid = int(_portage_grpname)
90
	else:
91
		portage_gid = grp.getgrnam(_portage_grpname)[2]
89
	if secpass < 1 and portage_gid in os.getgroups():
92
	if secpass < 1 and portage_gid in os.getgroups():
90
		secpass=1
93
		secpass=1
91
except KeyError:
94
except KeyError:

Return to bug 344307