[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:55 UTC 2012


The following commit has been merged in the develop branch:
commit 244fd6117077288f4b2dff0c8470782769382130
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sat May 26 02:02:10 2012 +0200

    report leftover directories with trailing slash
    
    This allows to visually distinguish files and dirs for better
    bug reporting.
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index d90bb7b..8dc795c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,7 @@ piuparts (0.45) UNRELEASED; urgency=low
     - Implement --install-remove-install option to test installation in
       config-files-remaining state.  (Closes: #359154)
     - Report leftover symlinks with target.
+    - Report leftover directories with a trailing slash.
   * 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 9edaf4a..e298b93 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1720,6 +1720,8 @@ def file_list(meta_infos, file_owners):
         info = ""
         if target is not None:
             info = " -> %s" % target
+        elif stat.S_ISDIR(st.st_mode):
+            info = "/"
         vlist.append("  %s%s\t" % (name, info))
         if name in file_owners:
             vlist.append(" owned by: %s\n" % ", ".join(file_owners[name]))

-- 
piuparts git repository



More information about the Piuparts-commits mailing list