]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- skip dirs
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 6 Nov 2011 10:52:53 +0000 (10:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    check-unused-files.py -> 1.14

check-unused-files.py

index 68d19416c1f8e93927093c4405a81ee164d9fd35..6e26ea3b5cc31c74c11d75c5765c097d07d93651 100644 (file)
@@ -53,6 +53,9 @@ def blacklisted(file):
     if file in [ '.', '..', 'CVS', 'TODO']:
         return True
 
+    if os.path.isdir(file):
+        return True
+
     for pat in exclude:
         if fnmatch.fnmatch(file, pat):
             return True
This page took 0.081588 seconds and 4 git commands to generate.