Commit 85326184 authored by Jürg Billeter's avatar Jürg Billeter

_context.py: Add require_artifact_files variable

This variable indicates whether file contents are required to be in the
local cache for an artifact to be considered cached.

This will allow partial artifacts for remote execution and certain
commands such as `bst show`.
parent 3e7560d5
......@@ -138,6 +138,9 @@ class Context():
# Whether or not to cache build trees on artifact creation
self.cache_buildtrees = None
# Whether file contents are required for all artifacts in the local cache
self.require_artifact_files = True
# Whether elements must be rebuilt when their dependencies have changed
self._strict_build_plan = None
......@@ -630,6 +633,15 @@ class Context():
def get_log_filename(self):
return self._log_filename
# set_artifact_files_optional()
#
# This indicates that the current context (command or configuration)
# does not require file contents of all artifacts to be available in the
# local cache.
#
def set_artifact_files_optional(self):
self.require_artifact_files = False
# _record_message()
#
# Records the message if recording is enabled
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment