Lines 3700-3711
Link Here
|
3700 |
# get possible slot information from the deps file |
3700 |
# get possible slot information from the deps file |
3701 |
if mydo == "depend": |
3701 |
if mydo == "depend": |
3702 |
writemsg("!!! DEBUG: dbkey: %s\n" % str(dbkey), 2) |
3702 |
writemsg("!!! DEBUG: dbkey: %s\n" % str(dbkey), 2) |
|
|
3703 |
droppriv = "userpriv" in mysettings.features |
3703 |
if isinstance(dbkey, dict): |
3704 |
if isinstance(dbkey, dict): |
3704 |
mysettings["dbkey"] = "" |
3705 |
mysettings["dbkey"] = "" |
3705 |
pr, pw = os.pipe() |
3706 |
pr, pw = os.pipe() |
3706 |
fd_pipes = {0:0, 1:1, 2:2, 9:pw} |
3707 |
fd_pipes = {0:0, 1:1, 2:2, 9:pw} |
3707 |
mypids = spawn(EBUILD_SH_BINARY + " depend", mysettings, |
3708 |
mypids = spawn(EBUILD_SH_BINARY + " depend", mysettings, |
3708 |
fd_pipes=fd_pipes, returnpid=True, droppriv=1) |
3709 |
fd_pipes=fd_pipes, returnpid=True, droppriv=droppriv) |
3709 |
os.close(pw) # belongs exclusively to the child process now |
3710 |
os.close(pw) # belongs exclusively to the child process now |
3710 |
maxbytes = 1024 |
3711 |
maxbytes = 1024 |
3711 |
mybytes = [] |
3712 |
mybytes = [] |
Lines 3733-3739
Link Here
|
3733 |
mysettings["dbkey"] = \ |
3734 |
mysettings["dbkey"] = \ |
3734 |
os.path.join(mysettings.depcachedir, "aux_db_key_temp") |
3735 |
os.path.join(mysettings.depcachedir, "aux_db_key_temp") |
3735 |
|
3736 |
|
3736 |
return spawn(EBUILD_SH_BINARY + " depend", mysettings, droppriv=1) |
3737 |
return spawn(EBUILD_SH_BINARY + " depend", mysettings, |
|
|
3738 |
droppriv=droppriv) |
3737 |
|
3739 |
|
3738 |
# Validate dependency metadata here to ensure that ebuilds with invalid |
3740 |
# Validate dependency metadata here to ensure that ebuilds with invalid |
3739 |
# data are never installed (even via the ebuild command). |
3741 |
# data are never installed (even via the ebuild command). |