aboutsummaryrefslogtreecommitdiff
path: root/libbpkg/manifest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbpkg/manifest.cxx')
-rw-r--r--libbpkg/manifest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx
index 306649d..6a5ff23 100644
--- a/libbpkg/manifest.cxx
+++ b/libbpkg/manifest.cxx
@@ -2160,10 +2160,10 @@ namespace bpkg
{
static const char* invalid_location ("invalid repository location");
- if (l.local () || l.type () != repository_type::bpkg)
+ if (l.local ())
throw invalid_argument (invalid_location);
- if (!url || (*url)[0] != '.')
+ if (l.type () != repository_type::bpkg || !url || (*url)[0] != '.')
return url;
const path rp (*url);