diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-04-08 20:41:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-04-08 20:41:03 +0000 |
commit | c2bdba445ff0da0e64471553ec295107cb20f943 (patch) | |
tree | e2d8240e514a4dfdefbac48af3e8f53b9f61d19b | |
parent | d9f6b91f5db476a6521968cd28c47b12ffee1627 (diff) | |
download | portage-c2bdba445ff0da0e64471553ec295107cb20f943.tar.gz portage-c2bdba445ff0da0e64471553ec295107cb20f943.tar.bz2 portage-c2bdba445ff0da0e64471553ec295107cb20f943.zip |
Reorganize emerge --info <atom> display, and make sure that the "cpv was
built with the following" line is shown for every package.
svn path=/main/trunk/; revision=13304
-rw-r--r-- | pym/_emerge/__init__.py | 23 |
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): |