diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-01-18 23:55:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-08 18:40:35 +0300 |
commit | b0b833e6a7330b38bc2732d681a8f48c380d49e8 (patch) | |
tree | fded911558f11bb22900504597bcb2570d689243 /libbpkg/manifest.hxx | |
parent | 25983f96f12870d3712e95a49a0cae606493c8b2 (diff) |
Allow enforcing file:// notation for repository_url::string()
Diffstat (limited to 'libbpkg/manifest.hxx')
-rw-r--r-- | libbpkg/manifest.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx index 7f5bcda..743df48 100644 --- a/libbpkg/manifest.hxx +++ b/libbpkg/manifest.hxx @@ -473,7 +473,9 @@ namespace bpkg // // - For the local URL object the path can be relative or absolute. Query // can not be present. Fragment can not be present for the relative path - // as there is no notation that can be used to represent it. + // as there is no notation that can be used to represent it. The file:// + // notation can be enforced for the absolute path by setting the authority + // to an empty object. // struct LIBBPKG_EXPORT repository_url: butl::basic_url<repository_protocol, repository_url_traits> @@ -598,7 +600,7 @@ namespace bpkg // URL of an empty location is empty. // - repository_url + const repository_url& url () const { return url_; |