aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts/patchtool.py
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/scripts/patchtool.py
parentf6f46adfbd57d5ca95ddb47da820f032360c1b70 (diff)
downloadports-c7d13486e3f80aa4b48ef13668629edfdcd76fb6.tar.gz
ports-c7d13486e3f80aa4b48ef13668629edfdcd76fb6.zip
Notes
Diffstat (limited to 'Tools/scripts/patchtool.py')
-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, '..')