summaryrefslogtreecommitdiff
path: root/src/cstore
diff options
context:
space:
mode:
authorThomas Jepp <tom@tomjepp.co.uk>2015-12-17 15:26:09 +0000
committerThomas Jepp <tom@tomjepp.co.uk>2015-12-17 15:26:09 +0000
commit8a2f140cdb863a757309500cf604108431076726 (patch)
treec290e0a98ec26ed70e90bcc44668b8b4c5576051 /src/cstore
parent97465a41a41d6458eb08fc2b635085d7db2367c4 (diff)
downloadvyatta-cfg-8a2f140cdb863a757309500cf604108431076726.tar.gz
vyatta-cfg-8a2f140cdb863a757309500cf604108431076726.zip
Go back to using the apt version comparison for node sorting.
Diffstat (limited to 'src/cstore')
-rw-r--r--src/cstore/cstore.cpp5
1 files changed, 4 insertions, 1 deletions
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 <sstream>
#include <memory>
+#include <apt-pkg/version.h>
+#include <apt-pkg/debversion.h>
+
#include <cli_cstore.h>
#include <cstore/cstore.hpp>
#include <cstore/unionfs/cstore-unionfs.hpp>
@@ -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