summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-09 23:02:33 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-09 23:02:33 +0000
commitf1af68e406bba956edb40440f65c5fc8057d6cab (patch)
treeb8c76d57fbc2e65f403a27a899c0d76c58b0d7b2
parent73304d5f61d64ed40b6dacd1a1765847c3596fa6 (diff)
downloadportage-f1af68e406bba956edb40440f65c5fc8057d6cab.tar.gz
portage-f1af68e406bba956edb40440f65c5fc8057d6cab.tar.bz2
portage-f1af68e406bba956edb40440f65c5fc8057d6cab.zip
* Use noiselevel=-1 for preserve-libs ">>> needed" and "<<< !needed" messages
so that they're show even without --verbose mode. * Sort files for the ">>> needed" display. svn path=/main/trunk/; revision=11842
-rw-r--r--pym/portage/dbapi/vartree.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 418624598..152e9d2cc 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -2573,7 +2573,7 @@ class dblink(object):
# Copy contents entries from the old package to the new one.
new_contents = self.getcontents().copy()
old_contents = self._installed_instance.getcontents()
- for f in list(preserve_paths):
+ for f in sorted(preserve_paths):
f_abs = os.path.join(root, f.lstrip(os.sep))
contents_entry = old_contents.get(f_abs)
if contents_entry is None:
@@ -2589,7 +2589,8 @@ class dblink(object):
continue
new_contents[f_abs] = contents_entry
obj_type = contents_entry[0]
- showMessage(">>> needed %s %s\n" % (obj_type, f_abs))
+ showMessage(">>> needed %s %s\n" % (obj_type, f_abs),
+ noiselevel=-1)
# Add parent directories to contents if necessary.
parent_dir = os.path.dirname(f_abs)
while len(parent_dir) > len(root):
@@ -2726,7 +2727,8 @@ class dblink(object):
raise
del e
else:
- showMessage("<<< !needed %s %s\n" % (obj_type, obj))
+ showMessage("<<< !needed %s %s\n" % (obj_type, obj),
+ noiselevel=-1)
# Remove empty parent directories if possible.
while parent_dirs: