diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-16 18:17:07 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-19 13:49:27 +0300 |
commit | 636d69c1b740d8975bb7c7a3b518c280ac224545 (patch) | |
tree | be9552beaea26413280bac12dabf07127bec4e28 /bpkg/package.cxx | |
parent | 5e6c781d4a1fafdb5e81c17b792cd36b7433ce90 (diff) |
Add --mask-repository pkg-build option
Diffstat (limited to 'bpkg/package.cxx')
-rw-r--r-- | bpkg/package.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bpkg/package.cxx b/bpkg/package.cxx index c98e7a4..56f4221 100644 --- a/bpkg/package.cxx +++ b/bpkg/package.cxx @@ -6,6 +6,7 @@ #include <bpkg/database.hxx> #include <bpkg/checksum.hxx> +#include <bpkg/rep-mask.hxx> #include <bpkg/pkg-verify.hxx> #include <bpkg/diagnostics.hxx> #include <bpkg/satisfaction.hxx> @@ -373,7 +374,7 @@ namespace bpkg { const shared_ptr<repository_fragment>& rf (prf.repository_fragment); - if (rf->location.directory_based ()) + if (!rep_masked_fragment (db, rf) && rf->location.directory_based ()) fail << "external package " << n << '/' << v << " is already available from " << rf->location.canonical_name (); |