From ce8a7b9e50945758efdafc63869e1b44864f9d7d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Oct 2015 14:32:44 +0200 Subject: Adopt to some bpkg namespace types reshape --- brep/package-version-details.cxx | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'brep/package-version-details.cxx') diff --git a/brep/package-version-details.cxx b/brep/package-version-details.cxx index 162e783..0d08a45 100644 --- a/brep/package-version-details.cxx +++ b/brep/package-version-details.cxx @@ -116,9 +116,7 @@ namespace brep try { - package_version_id id { - p, v.epoch (), v.canonical_upstream (), v.revision ()}; - + package_version_id id {p, v.epoch, v.canonical_upstream, v.revision}; pv = db_->load (id); // If the requested package version turned up to be an "external" one @@ -193,22 +191,11 @@ namespace brep if (&d != &da[0]) s << " | "; - // @@ Should it be a link to package version search page on the + // @@ Should it be a link to the package version search page or + // the best matching package version details page on the // corresponding repository site ? // - s << d.package; - - if (d.version) - { - static const strings operations ({"==", "<", ">", "<=", ">="}); - size_t op (static_cast (d.version->operation)); - assert (op < operations.size ()); - - // @@ Should it be a link to the best matching package version - // details page on the corresponding repository site ? - // - s << " " << operations[op] << " " << d.version->value.string (); - } + s << d; } if (!da.comment.empty ()) -- cgit v1.1