diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-01 18:33:16 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-02 20:04:26 +0300 |
commit | 1374560d558f4cab72f66b3d851e2a052f59998d (patch) | |
tree | c12564709e52e17699fe9932eb2b07b07189a5c0 /bpkg/manifest-utility.cxx | |
parent | 780290277a51853b2e515b16898ca0fcfa1e9e71 (diff) |
Update pkg-build
Diffstat (limited to 'bpkg/manifest-utility.cxx')
-rw-r--r-- | bpkg/manifest-utility.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx index 8377bab..7b039c9 100644 --- a/bpkg/manifest-utility.cxx +++ b/bpkg/manifest-utility.cxx @@ -146,13 +146,12 @@ namespace bpkg bool repository_name (const string& s) { - size_t n (s.size ()); size_t p (s.find (':')); - // If it has no scheme or starts with the URL scheme (followed by ://) then + // If it has no scheme or starts with the URL scheme (followed by :/) then // this is not a canonical name. // - if (p == string::npos || (p + 2 < n && s[p + 1] == '/' && s[p + 2] == '/')) + if (p == string::npos || s[p + 1] == '/') return false; // This is a canonical name if the scheme is convertible to the repository |