diff --git a/dependency_utils.py b/dependency_utils.py index d218974..67661cf 100644 --- a/dependency_utils.py +++ b/dependency_utils.py @@ -111,6 +111,7 @@ class ReleaseDownload(Source): return pj(self.buildEnv.source_dir, self.source_dir) def _download(self, context): + context.try_skip(self.buildEnv.archive_dir, self.name) self.buildEnv.download(self.archive) def _extract(self, context): diff --git a/travis/compile_all.py b/travis/compile_all.py index 1f068e5..8202fa2 100755 --- a/travis/compile_all.py +++ b/travis/compile_all.py @@ -111,7 +111,7 @@ def make_deps_archive(target, full=False): relative_path = BASE_DIR if full: - files_to_archive += [ARCHIVE_DIR] + files_to_archive += ARCHIVE_DIR.glob(".*_ok") files_to_archive += BASE_DIR.glob('*/.*_ok') files_to_archive += SOURCE_DIR.glob('*/.*_ok') files_to_archive += [SOURCE_DIR/'pugixml-{}'.format( diff --git a/utils.py b/utils.py index f4ace50..e5e9718 100644 --- a/utils.py +++ b/utils.py @@ -137,8 +137,10 @@ class Context: self.force_native_build = force_native_build self.autoskip_file = None - def try_skip(self, path): - self.autoskip_file = pj(path, ".{}_ok".format(self.command_name)) + def try_skip(self, path, extra_name=""): + if extra_name: + extra_name = "_{}".format(extra_name) + self.autoskip_file = pj(path, ".{}{}_ok".format(self.command_name, extra_name)) if os.path.exists(self.autoskip_file): raise SkipCommand()