Merge pull request #122 from kiwix/rel_name_in_dep_archives

Files in the deps archive must not be absolute path.
This commit is contained in:
Matthieu Gautier 2018-02-22 12:03:10 +01:00 committed by GitHub
commit ab1b16ebde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ for target in TARGETS:
files_to_archive.append(manifest_file)
with tarfile.open(str(BASE_DIR/archive_name), 'w:gz') as tar:
for name in files_to_archive:
tar.add(str(name))
tar.add(str(name), arcname=str(name.relative_to(BASE_DIR)))
scp(str(BASE_DIR/archive_name), 'nightlybot@download.kiwix.org:/var/www/tmp.kiwix.org/ci/')
run_kiwix_build(target,