From c7d13486e3f80aa4b48ef13668629edfdcd76fb6 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Tue, 31 Jul 2001 08:50:36 +0000 Subject: Actually fix the breakage introduced in rev 1.2. --- Tools/scripts/patchtool.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'Tools/scripts/patchtool.py') diff --git a/Tools/scripts/patchtool.py b/Tools/scripts/patchtool.py index 7cbeb1d67bc8..3e28abd39335 100755 --- a/Tools/scripts/patchtool.py +++ b/Tools/scripts/patchtool.py @@ -161,8 +161,6 @@ def getrelpath(path, wrksrc): commonpart = commonpart[:-1] path = path[len(commonpart):] wrksrc = wrksrc[len(commonpart):] - if wrksrc == '': - path = path[1:] adjust = '' while os.path.normpath(os.path.join(wrksrc, adjust)) != '.': adjust = os.path.join(adjust, '..') -- cgit v1.2.3