Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2017-02-10 06:30:39 +0300
committerAlexis Christoforides <alexis@thenull.net>2017-02-10 06:31:15 +0300
commite5fba73fd22b91de869a046f0db7f3d0f369e8a2 (patch)
treeebe379ad00ab426128e4b06ba087df1c122886c4 /bockbuild.py
parentb536c39231d4cd0cda51bd31706c50cebe9c9859 (diff)
Support for “shadow copying”, which is just replicating a directory tree with hardlinks.
Diffstat (limited to 'bockbuild.py')
-rwxr-xr-xbockbuild.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/bockbuild.py b/bockbuild.py
index 7a58c3f..953c1cf 100755
--- a/bockbuild.py
+++ b/bockbuild.py
@@ -73,20 +73,20 @@ class Bockbuild:
self.resources = set([os.path.realpath(
os.path.join(self.root, 'packages'))]) # list of paths on where to look for packages, patches, etc.
- self.state_root = self.root # root path for all storage; artifacts, build I/O, cache, storage and output
+ config.state_root = self.root # root path for all storage; artifacts, build I/O, cache, storage and output
config.protected_git_repos.append (self.root)
config.absolute_root = os.path.commonprefix([self.root, self.execution_root])
- self.build_root = os.path.join(self.state_root, 'builds')
- self.staged_prefix = os.path.join(self.state_root, 'stage')
- self.toolchain_root = os.path.join(self.state_root, 'toolchain')
- self.artifact_root = os.path.join(self.state_root, 'artifacts')
- self.package_root = os.path.join(self.state_root, 'distribution')
- self.scratch = os.path.join(self.state_root, 'scratch')
- self.logs = os.path.join(self.state_root, 'logs')
- self.env_file = os.path.join(self.state_root, 'last-successful-build.env')
+ self.build_root = os.path.join(config.state_root, 'builds')
+ self.staged_prefix = os.path.join(config.state_root, 'stage')
+ self.toolchain_root = os.path.join(config.state_root, 'toolchain')
+ self.artifact_root = os.path.join(config.state_root, 'artifacts')
+ self.package_root = os.path.join(config.state_root, 'distribution')
+ self.scratch = os.path.join(config.state_root, 'scratch')
+ self.logs = os.path.join(config.state_root, 'logs')
+ self.env_file = os.path.join(config.state_root, 'last-successful-build.env')
self.source_cache = os.getenv('BOCKBUILD_SOURCE_CACHE') or os.path.realpath(
- os.path.join(self.state_root, 'cache'))
+ os.path.join(config.state_root, 'cache'))
self.cpu_count = get_cpu_count()
self.host = get_host()
self.uname = backtick('uname -a')