mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
Fix breakage introduced in previous commit.
This commit is contained in:
parent
a2bc5891ae
commit
f6f46adfbd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45649
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user