From 5e131fadcb46d4ca48f18a356930759ef7977483 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:01:38 +0000 Subject: [PATCH] Don't try to execut the pkg_info phase if DEFINED_PHASES is available and it shows that the phase is undefined. (trunk r13305) svn path=/main/branches/2.1.6/; revision=13476 --- pym/_emerge/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index e3b7f2fb9..f0ece4e8c 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -13426,6 +13426,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) @@ -13524,6 +13525,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): -- 2.26.2