The logic for finding long matches before short ones was wrong (why did I never notice this??!?), fixed.

This commit is contained in:
Jack Jansen 2000-09-10 12:03:06 +00:00
parent 8a6cdccf21
commit eb43b30aee
1 changed files with 7 additions and 7 deletions

View File

@ -142,13 +142,13 @@ def match(self, patharg):
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