aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-unpack.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-06-13 21:05:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-06-16 11:10:04 +0300
commit32e4cffb444d4ad936c9037eecea9bd78f81f3d0 (patch)
treebbbb4452a88f47449c86a7ff85b9617ab7b621da /bpkg/pkg-unpack.cxx
parentc98f1215387f993329a96785a2a9102d93cb0328 (diff)
Add --mask-repository pkg-build optionmask-repos-old
Diffstat (limited to 'bpkg/pkg-unpack.cxx')
-rw-r--r--bpkg/pkg-unpack.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/bpkg/pkg-unpack.cxx b/bpkg/pkg-unpack.cxx
index 5c88cc6..1d55ab6 100644
--- a/bpkg/pkg-unpack.cxx
+++ b/bpkg/pkg-unpack.cxx
@@ -70,6 +70,8 @@ namespace bpkg
bool purge,
bool simulate)
{
+ assert (!masked_repository_fragment (rl));
+
// Make the package path absolute and normalized. If the package is inside
// the configuration, use the relative path. This way we can move the
// configuration around.
@@ -304,7 +306,8 @@ namespace bpkg
for (const package_location& l: ap->locations)
{
- if (l.repository_fragment.load ()->location.directory_based ())
+ if (!masked_repository_fragment (l.repository_fragment) &&
+ l.repository_fragment.load ()->location.directory_based ())
{
pl = &l;
break;