diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-08-01 21:06:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-08-04 13:01:50 +0300 |
commit | d0e478348ab1362e22e426b2b3dbb3becf2d6a24 (patch) | |
tree | 8704d4ce6e12ca5103db492cb20dfd08a0853858 /bpkg/pkg-purge.cxx | |
parent | 67d42b48930f65a7e270e153f1ca627c5241d17b (diff) |
Fix pkg-fetch which failed to re-fetch same package version in --replace mode
Diffstat (limited to 'bpkg/pkg-purge.cxx')
-rw-r--r-- | bpkg/pkg-purge.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/pkg-purge.cxx b/bpkg/pkg-purge.cxx index 07951a6..e031b6a 100644 --- a/bpkg/pkg-purge.cxx +++ b/bpkg/pkg-purge.cxx @@ -58,7 +58,7 @@ namespace bpkg { if (!simulate) { - path a (p->archive->absolute () ? *p->archive : c / *p->archive); + path a (p->effective_archive (c)); if (exists (a)) rm (a); @@ -192,7 +192,7 @@ namespace bpkg if (p->purge_archive) { - path a (p->archive->absolute () ? *p->archive : c / *p->archive); + path a (p->effective_archive (c)); if (exists (a)) fail << "archive file of broken package " << n << " still exists" << |