aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-22 14:06:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-22 14:06:40 +0200
commit0db5f43f88a22a8ef9323ec5b1561be882662350 (patch)
treee415935b8e6f06b55bbaa5fd86de6a4586145857 /bpkg/manifest
parentfdf165a739b972234b5cada2e333699b0f4013bc (diff)
Minor improvements to repository_location
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest10
1 files changed, 10 insertions, 0 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 47b8d76..dfbe5af 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -337,6 +337,10 @@ namespace bpkg
//
repository_location (const std::string&, const repository_location& base);
+ repository_location (const repository_location& l,
+ const repository_location& base)
+ : repository_location (l.string (), base) {}
+
// Note that relative locations have no canonical name. Canonical
// name of an empty location is the empty name.
//
@@ -428,6 +432,12 @@ namespace bpkg
butl::dir_path path_;
};
+ inline std::ostream&
+ operator<< (std::ostream& os, const repository_location& l)
+ {
+ return os << l.string ();
+ }
+
class repository_manifest
{
public: