From c010ca31dfd32cc6255cfe8242302706a00a42a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Jan 2016 20:36:15 +0200 Subject: Fix bugs in revision comparison --- bpkg/pkg-status.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bpkg/pkg-status.cxx') diff --git a/bpkg/pkg-status.cxx b/bpkg/pkg-status.cxx index 896ffe9..1f890c4 100644 --- a/bpkg/pkg-status.cxx +++ b/bpkg/pkg-status.cxx @@ -87,6 +87,8 @@ namespace bpkg q = q && compare_version_eq (query::id.version, v, v.revision != 0); q += order_by_revision_desc (query::id.version); } + else + q += order_by_version_desc (query::id.version); // Only consider packages that are in repositories that were explicitly // added to the configuration and their complements, recursively. -- cgit v1.1