diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-11 13:33:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-11 13:33:17 +0200 |
commit | a0ef4ec1ecd34e277f021dc18bcaad7767c8ab11 (patch) | |
tree | 371b626b004f13049d918e445c3f18474e6a3273 | |
parent | 4b97dd0e2f192d6999285b83a0ee7260db7cf94f (diff) |
Cleanup auxiliary environment save file
-rw-r--r-- | bbot/agent/agent.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx index d6a7d4b..75f7228 100644 --- a/bbot/agent/agent.cxx +++ b/bbot/agent/agent.cxx @@ -1577,7 +1577,9 @@ try const bootstrapped_machine_manifest& mm (am.manifest); path ef (tftp_put_dir / "environment"); // Environment upload file. + path efm (ef + '-' + mm.machine.name); // Environment upload saved file. try_rmfile (ef); + try_rmfile (efm); // <name>-<toolchain>-<xxx> // @@ -1777,7 +1779,7 @@ try // Rename and keep the environment file for debugging (it will be removed // at the end as part of the tftp_put_dir cleanup). // - mvfile (ef, ef + '-' + mm.machine.name); + mvfile (ef, efm); return make_pair (auxiliary_machine_result {move (xp), move (m)}, move (env)); |