From 1963538d18459e1e9f09808912cb0aae9ace1f3c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 27 Jun 2015 23:57:16 +0200 Subject: Use bpkg structs in package --- brep/view.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'brep/view.cxx') diff --git a/brep/view.cxx b/brep/view.cxx index 48c8188..222558a 100644 --- a/brep/view.cxx +++ b/brep/view.cxx @@ -82,7 +82,8 @@ namespace brep } else { - o << "
licenses:" << v->license_alternatives.size (); + o << "
version:" << v->version.string() + << "
licenses:" << v->license_alternatives.size (); for (const auto& la : v->license_alternatives) { @@ -104,9 +105,9 @@ namespace brep { o << " |" << d.package; - if (!d.version.null ()) + if (d.version) { - o << "," << d.version->value << "," + o << "," << d.version->value.string () << "," << static_cast (d.version->operation) << "|"; } } -- cgit v1.1