summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py
index 9a1b0d68..50b57760 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -207,9 +207,9 @@ class Version(object):
def _cmp(self, other):
try:
- return apt_pkg.Version_compare(self._cand.ver_str, other.version)
+ return apt_pkg.version_compare(self._cand.ver_str, other.version)
except AttributeError:
- return apt_pkg.Version_compare(self._cand.ver_str, other)
+ return apt_pkg.version_compare(self._cand.ver_str, other)
def __eq__(self, other):
try: