diff options
-rw-r--r-- | pym/_emerge/__init__.py | 5 |
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): |