aboutsummaryrefslogtreecommitdiff
path: root/bbot
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-10-14 14:46:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-10-14 15:26:12 +0300
commit295d966318a28ced6d77da01b26da4d145d26798 (patch)
treea9c13712d2f39e4537d42936d1bd760912980b22 /bbot
parent5399ed209cb567657cc5f26ad5fdb4484291031c (diff)
Free up space before installing package in worker
Diffstat (limited to 'bbot')
-rw-r--r--bbot/worker/worker.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index 03287a3..8994e3f 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -2490,6 +2490,13 @@ build (size_t argc, const char* argv[])
change_wd (trace, &r.log, install_conf);
+ // Note that for a host or module package we don't need the target
+ // configuration anymore, if present. So let's free up the space a
+ // little bit.
+ //
+ if (!target_pkg && create_target)
+ rm_r (trace, &r.log, rwd / target_conf);
+
// bpkg install <env-config-args> <config-args> <package-name>
//
step_id b (step_id::bpkg_install);