summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-07-31 08:50:36 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-07-31 08:50:36 +0000
commitc7d13486e3f80aa4b48ef13668629edfdcd76fb6 (patch)
tree5039f1a9084809873381c4645962b7fc6818cc4c /Tools
parentFix breakage introduced in previous commit. (diff)
Actually fix the breakage introduced in rev 1.2.
Notes
Notes: svn path=/head/; revision=45650
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/patchtool.py2
1 files changed, 0 insertions, 2 deletions
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, '..')