diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-03 18:24:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-04 12:40:57 +0300 |
commit | 7bb44980ced46506c10bad333f526b7bc62ea1db (patch) | |
tree | 207a14ee727f7237e8fc2b08e47f4de8a97e0b99 /bpkg/rep-fetch.cxx | |
parent | bd02eaa1298271ecf8365aa869e93fdcb04fdeb1 (diff) |
Add support for multiple temporary directories
Diffstat (limited to 'bpkg/rep-fetch.cxx')
-rw-r--r-- | bpkg/rep-fetch.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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)) |