aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-30 20:15:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-30 20:15:18 +0200
commit38a151f6b970f966e11b1843203e9ac0e372422d (patch)
treebdf71d6d1a6ab3de9e0424966edbebf0cdc038d1 /bpkg/manifest
parentf23cd3159444361233b257ab8341b260b378064e (diff)
Print <empty-version> instead of throwing
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest5
1 files changed, 4 insertions, 1 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index d932b2a..5d19ea5 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -147,7 +147,10 @@ namespace bpkg
};
inline std::ostream&
- operator<< (std::ostream& os, const version& v) {return os << v.string ();}
+ operator<< (std::ostream& os, const version& v)
+ {
+ return os << (v.empty () ? "<empty-version>" : v.string ());
+ }
// priority
//