Fix problem of tar file creation on Windows (slash vs backslash issue)

This commit is contained in:
Bertrand Bellenot 2016-08-26 09:33:27 +02:00 committed by sftnight
parent 224339d65f
commit 63514775af

View File

@ -590,6 +590,8 @@ def install_prefix():
for root, dirs, files in os.walk(TMP_PREFIX):
for file in files:
f = os.path.join(root, file).replace(TMP_PREFIX, '')
if OS == 'Windows':
f = f.replace('\\', '/')
if any(map(lambda x: re.search(x, f), included)):
print("Filter: " + f)
if not os.path.isdir(os.path.join(prefix, os.path.dirname(f))):