From eb43b30aee1c71b03dfaf7e1516bd610f9dd83d0 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 10 Sep 2000 12:03:06 +0000 Subject: [PATCH] The logic for finding long matches before short ones was wrong (why did I never notice this??!?), fixed. --- Mac/scripts/MkDistr.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Mac/scripts/MkDistr.py b/Mac/scripts/MkDistr.py index 1ed774c267c..a8728ab94fd 100644 --- a/Mac/scripts/MkDistr.py +++ b/Mac/scripts/MkDistr.py @@ -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