From 8a2f140cdb863a757309500cf604108431076726 Mon Sep 17 00:00:00 2001 From: Thomas Jepp Date: Thu, 17 Dec 2015 15:26:09 +0000 Subject: Go back to using the apt version comparison for node sorting. --- src/cstore/cstore.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp index 85acbca..1253978 100644 --- a/src/cstore/cstore.cpp +++ b/src/cstore/cstore.cpp @@ -25,6 +25,9 @@ #include #include +#include +#include + #include #include #include @@ -2019,7 +2022,7 @@ Cstore::assert_internal(bool cond, const char *fmt, ...) bool Cstore::sort_func_deb_version(string a, string b) { - return strcmp(a.c_str(), b.c_str()) > 0; + return debVS.CmpVersion(a, b) > 0; } void -- cgit v1.2.3