diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-26 20:36:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-26 20:36:15 +0200 |
commit | c010ca31dfd32cc6255cfe8242302706a00a42a0 (patch) | |
tree | 9103aa2abbdb75032507c953aed04f2d010e0e2d /bpkg/pkg-status.cxx | |
parent | 733ed5b60710c64a1851ad92706c52fcf58c19f7 (diff) |
Fix bugs in revision comparison
Diffstat (limited to 'bpkg/pkg-status.cxx')
-rw-r--r-- | bpkg/pkg-status.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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. |