summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 5c7f62d3c..b53c2bd95 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -13635,16 +13635,8 @@ def action_info(settings, trees, myopts, myfiles):
if valuesmap[myvar] != global_vals[myvar]:
diff_values[myvar] = valuesmap[myvar]
- # If a difference was found, print the info for
- # this package.
- if diff_values:
- # Print package info
- print "%s was built with the following:" % pkg.cpv
- for myvar in mydesiredvars:
- if myvar in diff_values:
- mylist = list(diff_values[myvar])
- mylist.sort()
- print "%s=\"%s\"" % (myvar, " ".join(mylist))
+ print "\n%s was built with the following:" % \
+ colorize("INFORM", str(pkg.cpv))
pkgsettings.setcpv(pkg)
forced_flags = set(chain(pkgsettings.useforce,
@@ -13697,6 +13689,17 @@ def action_info(settings, trees, myopts, myfiles):
print '%s="%s"' % (varname, ' '.join(str(f) for f in flags)),
print
+ # If a difference was found, print the info for
+ # this package.
+ if diff_values:
+ # Print package info
+ for myvar in mydesiredvars:
+ if myvar in diff_values:
+ mylist = list(diff_values[myvar])
+ mylist.sort()
+ print "%s=\"%s\"" % (myvar, " ".join(mylist))
+ print
+
print ">>> Attempting to run pkg_info() for '%s'" % pkg.cpv
ebuildpath = vardb.findname(pkg.cpv)
if not ebuildpath or not os.path.exists(ebuildpath):