From 6202224d079b704ffb9cfbc6972de2be60d38a97 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Feb 2018 18:41:25 +0300 Subject: Add support for git location type to repository manifest --- libbpkg/manifest.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbpkg/manifest.cxx') 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); -- cgit v1.1