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,
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):