diff options
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)) |