aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-fetch.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-06-03 21:53:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-06-07 13:49:14 +0300
commit00cda575c97494d1b6caf2d05ea8a1f8e848cd8a (patch)
tree19adfe4823b460367b80630c2b43ed553fc391a0 /bpkg/rep-fetch.cxx
parentdeecf4971fbc90b472135e30387bc76e9788061b (diff)
Add --keep-temp common option
Diffstat (limited to 'bpkg/rep-fetch.cxx')
-rw-r--r--bpkg/rep-fetch.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx
index e232d24..e9cacd0 100644
--- a/bpkg/rep-fetch.cxx
+++ b/bpkg/rep-fetch.cxx
@@ -507,12 +507,12 @@ namespace bpkg
bool ev,
bool lb)
{
- auto i (temp_dir.find (conf != nullptr ? *conf : empty_dir_path));
- assert (i != temp_dir.end ());
+ auto i (tmp_dirs.find (conf != nullptr ? *conf : empty_dir_path));
+ assert (i != tmp_dirs.end ());
dir_path sd (repository_state (rl));
- auto_rmdir rm (i->second / sd);
+ auto_rmdir rm (i->second / sd, !keep_tmp);
const dir_path& td (rm.path);
if (exists (td))