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

View file

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