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>2019-06-10 20:24:34 +0300
committerAlexis Christoforides <alexis@thenull.net>2019-06-10 20:24:34 +0300
commitf04877cd480f25c7fe22268e03bb6fac5d6028c8 (patch)
treeb2a4ceaeb3cdb7f09d9a85feeda99f62581a8f78
parent5e15677a83bc74d7ccadf26ec7279d88721ad2dd (diff)
Don't eagerly delete logs
Delete logs of built packages only if they are about to get rebuilt
-rwxr-xr-xbockbuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bockbuild.py b/bockbuild.py
index a3b0cfe..691060b 100755
--- a/bockbuild.py
+++ b/bockbuild.py
@@ -194,8 +194,6 @@ class Bockbuild:
self.artifact_root, '%s-%s' % (package.name, arch))
package.buildstring_file = package.build_artifact + '.buildstring'
package.log = os.path.join(self.logs, package.name + '.log')
- if os.path.exists(package.log):
- delete(package.log)
package.source_dir_name = expand_macros(package.source_dir_name, package)
workspace_path = os.path.join(self.build_root, package.source_dir_name)
@@ -226,6 +224,8 @@ class Bockbuild:
package.deploy_requests.append (stage)
for package in packages.values():
+ if os.path.exists(package.log):
+ delete(package.log)
package.start_build(arch, dest, stage)
# make artifact in scratch
# delete artifact + buildstring