aboutsummaryrefslogtreecommitdiff
path: root/brep/package-version-details.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-01 14:32:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-07 18:04:00 +0200
commitce8a7b9e50945758efdafc63869e1b44864f9d7d (patch)
tree64db2fd0338ce08a401add5459b70d937669db38 /brep/package-version-details.cxx
parentd1fae6b26e0820dee76e396c540bb1de90038917 (diff)
Adopt to some bpkg namespace types reshape
Diffstat (limited to 'brep/package-version-details.cxx')
-rw-r--r--brep/package-version-details.cxx21
1 files changed, 4 insertions, 17 deletions
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<package_version> (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<size_t> (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 ())