[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-595-g244fd61

Holger Levsen holger at layer-acht.org
Sun May 27 09:16:54 UTC 2012


The following commit has been merged in the develop branch:
commit c021416290cfb97a50da7f7c7c8f2fcd2cb06e7f
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sat May 26 01:58:23 2012 +0200

    report leftover symlinks with target
    
    improve visual classification of the leftover files
    
      /path/to/foo -> ../bar  (not) owned (by: pkg)
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index df50dba..d90bb7b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,7 @@ piuparts (0.45) UNRELEASED; urgency=low
   * piuparts.py:
     - Implement --install-remove-install option to test installation in
       config-files-remaining state.  (Closes: #359154)
+    - Report leftover symlinks with target.
   * piupartslib/packagesdb.py:
     - Do not consider a package as "untestable" if untestable/ contains a
       logfile from an obsolete version of that package.
diff --git a/piuparts.py b/piuparts.py
index e57320f..9edaf4a 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1716,7 +1716,11 @@ def file_list(meta_infos, file_owners):
     meta_infos.sort()
     vlist = []
     for name, data in meta_infos:
-        vlist.append("  %s\t" % name)
+        (st, target) = data
+        info = ""
+        if target is not None:
+            info = " -> %s" % target
+        vlist.append("  %s%s\t" % (name, info))
         if name in file_owners:
             vlist.append(" owned by: %s\n" % ", ".join(file_owners[name]))
         else:

-- 
piuparts git repository



More information about the Piuparts-commits mailing list