summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-08 20:48:08 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-08 20:48:08 +0000
commit43a864ffa96ebaecb98971e74cfeb35a42b9b34d (patch)
tree57afae389943a1081c74af5bf36b4fc892e254ec
parentc2bdba445ff0da0e64471553ec295107cb20f943 (diff)
downloadportage-43a864ffa96ebaecb98971e74cfeb35a42b9b34d.tar.gz
portage-43a864ffa96ebaecb98971e74cfeb35a42b9b34d.tar.bz2
portage-43a864ffa96ebaecb98971e74cfeb35a42b9b34d.zip
Don't try to execut the pkg_info phase if DEFINED_PHASES is available and
it shows that the phase is undefined. svn path=/main/trunk/; revision=13305
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index b53c2bd95..6b526564a 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -13602,6 +13602,7 @@ def action_info(settings, trees, myopts, myfiles):
# the current config)
mydesiredvars = [ 'CHOST', 'CFLAGS', 'CXXFLAGS', 'LDFLAGS' ]
auxkeys = mydesiredvars + list(vardb._aux_cache_keys)
+ auxkeys.append('DEFINED_PHASES')
global_vals = {}
pkgsettings = portage.config(clone=settings)
@@ -13700,6 +13701,10 @@ def action_info(settings, trees, myopts, myfiles):
print "%s=\"%s\"" % (myvar, " ".join(mylist))
print
+ if metadata['DEFINED_PHASES']:
+ if 'info' not in metadata['DEFINED_PHASES'].split():
+ continue
+
print ">>> Attempting to run pkg_info() for '%s'" % pkg.cpv
ebuildpath = vardb.findname(pkg.cpv)
if not ebuildpath or not os.path.exists(ebuildpath):