]> granicus.if.org Git - python/commitdiff
The logic for finding long matches before short ones was wrong (why did I never notic...
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 10 Sep 2000 12:03:06 +0000 (12:03 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 10 Sep 2000 12:03:06 +0000 (12:03 +0000)
Mac/scripts/MkDistr.py

index 1ed774c267c10c01d6551df5fa9402a6c1d93615..a8728ab94fd8b6bbe6509dcf49af314747d90c32 100644 (file)
@@ -142,13 +142,13 @@ class IncMatcher(Matcher):
                                if DEBUG:
                                        print 'include', patharg, dstpath
                                return dstpath
-                       path, lastcomp = os.path.split(path)
-                       if not path:
-                               break
-                       removed[0:0] = [lastcomp]
-               # Next check the exclude directory
-               path = patharg
-               while 1:
+##                     path, lastcomp = os.path.split(path)
+##                     if not path:
+##                             break
+##                     removed[0:0] = [lastcomp]
+##             # Next check the exclude directory
+##             path = patharg
+##             while 1:
                        if self.edict.has_key(path):
                                if DEBUG:
                                        print 'exclude', patharg, path