aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-02 09:50:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-07 18:04:38 +0200
commitba93b336890205933a57fae958c0ec6be5932ac7 (patch)
treee645eb45097a6ad7ae976a4111143d9c57ea4b8d /loader
parentce8a7b9e50945758efdafc63869e1b44864f9d7d (diff)
Simplify version comparison
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.cxx7
1 files changed, 4 insertions, 3 deletions
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<repository>& 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)