commit
9d24bcdf81
|
@ -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):
|
||||
|
|
|
@ -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(
|
||||
|
|
6
utils.py
6
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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue