From 295d966318a28ced6d77da01b26da4d145d26798 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Oct 2021 14:46:49 +0300 Subject: Free up space before installing package in worker --- bbot/worker/worker.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bbot') 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 // step_id b (step_id::bpkg_install); -- cgit v1.1