From 00cda575c97494d1b6caf2d05ea8a1f8e848cd8a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 3 Jun 2022 21:53:48 +0300 Subject: Add --keep-temp common option --- bpkg/rep-fetch.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bpkg/rep-fetch.cxx') 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)) -- cgit v1.1