From 2bce94811eb6ce4ce255af533fe33f2f08ed1cec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 24 Apr 2006 20:44:12 +0000 Subject: [PATCH] Use one aux_get call instead of 2. svn path=/main/trunk/; revision=3213 --- pym/portage.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index a6f2b5803..7d780aeb3 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2278,14 +2278,14 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m mysettings["PORTAGE_QUIET"] = "1" if mydo != "depend": - mysettings["INHERITED"], mysettings["RESTRICT"] = mydbapi.aux_get( \ - mycpv,["INHERITED","RESTRICT"]) - mysettings["PORTAGE_RESTRICT"]=string.join(flatten(portage_dep.use_reduce(portage_dep.paren_reduce( \ - mysettings["RESTRICT"]), uselist=mysettings["USE"].split())),' ') - eapi = mydbapi.aux_get(mycpv, ["EAPI"])[0] + mysettings["INHERITED"], mysettings["RESTRICT"], eapi = mydbapi.aux_get( + mycpv, ["INHERITED", "RESTRICT", "EAPI"]) if not eapi_is_supported(eapi): # can't do anything with this. raise portage_exception.UnsupportedAPIException(mycpv, eapi) + mysettings["PORTAGE_RESTRICT"] = " ".join(flatten( + portage_dep.use_reduce(portage_dep.paren_reduce( + mysettings["RESTRICT"]), uselist=mysettings["USE"].split()))) if mysplit[2] == "r0": mysettings["PVR"]=mysplit[1] -- 2.26.2