summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-02 05:09:23 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-02 05:09:23 +0000
commit5a9b173d00d74a1b8f646e605cc56a7dd5f3be03 (patch)
tree36be0b32f06419e553d9909dfcedb3508033fbe2
parent6312a9476d03a460b8f944b988f1c6838344ce0d (diff)
downloadportage-5a9b173d00d74a1b8f646e605cc56a7dd5f3be03.tar.gz
portage-5a9b173d00d74a1b8f646e605cc56a7dd5f3be03.tar.bz2
portage-5a9b173d00d74a1b8f646e605cc56a7dd5f3be03.zip
Remove an extra aux_get call in doebuild and combine it with another aux_get call in doebuild_environment.
svn path=/main/trunk/; revision=3301
-rw-r--r--pym/portage.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 43f5ff5a7..135bd6fac 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2383,7 +2383,7 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
if mysplit is None:
writemsg("!!! Error: PF is null '%s'; exiting.\n" % mypv)
return 1
- slot = mysettings["SLOT"]
+
if mydo != "depend":
# XXX: We're doing a little hack here to curtain the gvisible locking
# XXX: that creates a deadlock... Really need to isolate that.
@@ -2391,7 +2391,6 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
mysettings.setcpv(mycpv,use_cache=use_cache)
mysettings["EBUILD_PHASE"] = mydo
- mysettings["SLOT"] = slot
mysettings["PORTAGE_MASTER_PID"] = str(os.getpid())
@@ -2425,8 +2424,8 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
mysettings["PORTAGE_QUIET"] = "1"
if mydo != "depend":
- mysettings["INHERITED"], mysettings["RESTRICT"], eapi = mydbapi.aux_get(
- mycpv, ["INHERITED", "RESTRICT", "EAPI"])
+ eapi, mysettings["INHERITED"], mysettings["SLOT"], mysettings["RESTRICT"] = \
+ mydbapi.aux_get(mycpv, ["EAPI", "INHERITED", "SLOT", "RESTRICT"])
if not eapi_is_supported(eapi):
# can't do anything with this.
raise portage_exception.UnsupportedAPIException(mycpv, eapi)
@@ -2745,12 +2744,6 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
return spawn(EBUILD_SH_BINARY+" "+mydo,mysettings,debug=debug,free=1,logfile=logfile)
mycpv = "/".join((mysettings["CATEGORY"], mysettings["PF"]))
- try:
- mysettings["SLOT"], mysettings["RESTRICT"] = \
- mydbapi.aux_get(mycpv, ["SLOT", "RESTRICT"])
- except (IOError,KeyError):
- print red("doebuild():")+" aux_get() error reading "+mycpv+"; aborting."
- sys.exit(1)
newuris, alist = mydbapi.getfetchlist(mycpv, mysettings=mysettings)
alluris, aalist = mydbapi.getfetchlist(