From 43a864ffa96ebaecb98971e74cfeb35a42b9b34d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 8 Apr 2009 20:48:08 +0000 Subject: 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 --- pym/_emerge/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pym') 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): -- cgit v1.2.3-1-g7c22