diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-13 21:05:35 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-16 11:10:04 +0300 |
commit | 32e4cffb444d4ad936c9037eecea9bd78f81f3d0 (patch) | |
tree | bbbb4452a88f47449c86a7ff85b9617ab7b621da /bpkg/pkg-checkout.cxx | |
parent | c98f1215387f993329a96785a2a9102d93cb0328 (diff) |
Add --mask-repository pkg-build optionmask-repos-old
Diffstat (limited to 'bpkg/pkg-checkout.cxx')
-rw-r--r-- | bpkg/pkg-checkout.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx index 9793c41..7a78cb6 100644 --- a/bpkg/pkg-checkout.cxx +++ b/bpkg/pkg-checkout.cxx @@ -148,14 +148,17 @@ namespace bpkg for (const package_location& l: ap->locations) { - const repository_location& rl (l.repository_fragment.load ()->location); - - if (rl.version_control_based () && (pl == nullptr || rl.local ())) + if (!masked_repository_fragment (l.repository_fragment)) { - pl = &l; + const repository_location& rl (l.repository_fragment.load ()->location); + + if (rl.version_control_based () && (pl == nullptr || rl.local ())) + { + pl = &l; - if (rl.local ()) - break; + if (rl.local ()) + break; + } } } |