From 7bb44980ced46506c10bad333f526b7bc62ea1db Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 3 Sep 2021 18:24:08 +0300 Subject: Add support for multiple temporary directories --- bpkg/rep-fetch.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bpkg/rep-fetch.cxx') diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx index 7e0d3da..c000f05 100644 --- a/bpkg/rep-fetch.cxx +++ b/bpkg/rep-fetch.cxx @@ -408,9 +408,12 @@ namespace bpkg assert (conf == nullptr || !conf->empty ()); + auto i (temp_dir.find (conf != nullptr ? *conf : empty_dir_path)); + assert (i != temp_dir.end ()); + dir_path sd (repository_state (rl)); - auto_rmdir rm (temp_dir / sd); + auto_rmdir rm (i->second / sd); const dir_path& td (rm.path); if (exists (td)) -- cgit v1.1