From ba93b336890205933a57fae958c0ec6be5932ac7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Oct 2015 09:50:20 +0200 Subject: Simplify version comparison --- loader/loader.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'loader') diff --git a/loader/loader.cxx b/loader/loader.cxx index 3aa2b12..a901d14 100644 --- a/loader/loader.cxx +++ b/loader/loader.cxx @@ -406,9 +406,10 @@ load_packages (const shared_ptr& rp, database& db) package_version_id { pm.name, - pm.version.epoch, - pm.version.canonical_upstream, - pm.version.revision + { pm.version.epoch, + pm.version.canonical_upstream, + pm.version.revision + } })); if (pv == nullptr) -- cgit v1.1