aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts/patchtool.py
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-07-31 07:42:43 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-07-31 07:42:43 +0000
commitf6f46adfbd57d5ca95ddb47da820f032360c1b70 (patch)
tree45a36706e4cf18d72052d552755835faf1fcbd94 /Tools/scripts/patchtool.py
parenta2bc5891ae1cee8415df8cb019c9758b5b6cfe15 (diff)
downloadports-f6f46adfbd57d5ca95ddb47da820f032360c1b70.tar.gz
ports-f6f46adfbd57d5ca95ddb47da820f032360c1b70.zip
Notes
Diffstat (limited to 'Tools/scripts/patchtool.py')
-rwxr-xr-xTools/scripts/patchtool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/patchtool.py b/Tools/scripts/patchtool.py
index 845a7ff92c6c..7cbeb1d67bc8 100755
--- a/Tools/scripts/patchtool.py
+++ b/Tools/scripts/patchtool.py
@@ -155,7 +155,7 @@ def querymakevar(varname, path = 'Makefile', strict = False, cache = {}):
#
def getrelpath(path, wrksrc):
path = os.path.abspath(path)
- wrksrc = os.path.abspath(wrksrc)
+ wrksrc = os.path.abspath(wrksrc) + '/'
commonpart = os.path.commonprefix((path, wrksrc))
while commonpart[-1:] != '/':
commonpart = commonpart[:-1]