[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-612-g90378d6

Andreas Beckmann debian at abeckmann.de
Thu May 31 19:11:20 UTC 2012


The following commit has been merged in the develop branch:
commit 44af9b94329b6697cb3167ebed6c136991294548
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sun Apr 22 15:24:31 2012 +0200

    p: ignore patterns need to match the full file name
    
    doing only substring match was bad
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index 938ea3c..8e915f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,7 @@ piuparts (0.45) UNRELEASED; urgency=low
     - Report leftover symlinks with target.
     - Report leftover directories with a trailing slash.
     - Allow ignore entries to specifically match directories.
+    - Ignore patterns need to match the full filename, not a substring.
   * 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 715bd17..065c6cc 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1223,7 +1223,7 @@ class Chroot:
         if pathname in settings.ignored_files:
             return True
         for pattern in settings.ignored_patterns:
-            if re.search(pattern, pathname):
+            if re.search('^' + pattern + '$', pathname):
                 return True
         return False
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list