From f57a6d40973917e22c1d35c44e935b7e642954c8 Mon Sep 17 00:00:00 2001
From: Thomas Jepp <tom@tomjepp.co.uk>
Date: Thu, 17 Dec 2015 13:07:24 +0000
Subject: Replace dpkg version comparisions with strcmp.

---
 src/cstore/cstore.cpp | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp
index 485dcdb..85acbca 100644
--- a/src/cstore/cstore.cpp
+++ b/src/cstore/cstore.cpp
@@ -25,11 +25,6 @@
 #include <sstream>
 #include <memory>
 
-// for debian's version comparison algorithm
-#define APT_COMPATIBILITY 986
-#include <apt-pkg/version.h>
-#include <apt-pkg/debversion.h>
-
 #include <cli_cstore.h>
 #include <cstore/cstore.hpp>
 #include <cstore/unionfs/cstore-unionfs.hpp>
@@ -2024,14 +2019,7 @@ Cstore::assert_internal(bool cond, const char *fmt, ...)
 bool
 Cstore::sort_func_deb_version(string a, string b)
 {
-  debVersioningSystem debVersioning;
-
-  const char* A = a.c_str();
-  const char* B = b.c_str();
-  const char* Aend = A + a.length();
-  const char* Bend = B + b.length();
-
-  return debVersioning.DoCmpVersion(A, Aend, B, Bend) > 0;
+  return strcmp(a.c_str(), b.c_str()) > 0;
 }
 
 void
-- 
cgit v1.2.3