diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-08 18:41:25 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-08 18:42:57 +0300 |
commit | 6202224d079b704ffb9cfbc6972de2be60d38a97 (patch) | |
tree | 6a81ad020ec69de0caf19265cc586af74aa5aab2 /libbpkg/manifest.cxx | |
parent | b0b833e6a7330b38bc2732d681a8f48c380d49e8 (diff) |
Add support for git location type to repository manifest
Diffstat (limited to 'libbpkg/manifest.cxx')
-rw-r--r-- | libbpkg/manifest.cxx | 4 |
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); |