Merge pull request #218 from kiwix/archive_home_root

[TRAVIS] Allways use $HOME as relative path in dependencies archives.
This commit is contained in:
Matthieu Gautier 2018-07-16 10:11:31 +02:00 committed by GitHub
commit 87ef2b99f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -180,7 +180,7 @@ def make_deps_archive(target, full=False):
write_manifest(manifest_file, archive_name, target, PLATFORM) write_manifest(manifest_file, archive_name, target, PLATFORM)
files_to_archive.append(manifest_file) files_to_archive.append(manifest_file)
relative_path = BASE_DIR relative_path = HOME
if full: if full:
files_to_archive += ARCHIVE_DIR.glob(".*_ok") files_to_archive += ARCHIVE_DIR.glob(".*_ok")
files_to_archive += BASE_DIR.glob('*/.*_ok') files_to_archive += BASE_DIR.glob('*/.*_ok')
@ -193,7 +193,6 @@ def make_deps_archive(target, full=False):
files_to_archive += HOME.glob('BUILD_*/pugixml-{}'.format( files_to_archive += HOME.glob('BUILD_*/pugixml-{}'.format(
base_deps_versions['pugixml'])) base_deps_versions['pugixml']))
files_to_archive += HOME.glob('**/TOOLCHAINS') files_to_archive += HOME.glob('**/TOOLCHAINS')
relative_path = HOME
counter = 50 counter = 50
with tarfile.open(str(relative_path/archive_name), 'w:gz') as tar: with tarfile.open(str(relative_path/archive_name), 'w:gz') as tar: