From b0b833e6a7330b38bc2732d681a8f48c380d49e8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 18 Jan 2018 23:55:47 +0300 Subject: Allow enforcing file:// notation for repository_url::string() --- libbpkg/manifest.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbpkg/manifest.hxx') 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 @@ -598,7 +600,7 @@ namespace bpkg // URL of an empty location is empty. // - repository_url + const repository_url& url () const { return url_; -- cgit v1.1