]> err.no Git - dak/commit
daklib/checks.py: use apt_pkg.version_compare correctly
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 8 Jul 2012 21:50:11 +0000 (15:50 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 16:46:09 +0000 (10:46 -0600)
commitc11a2e9c7b7ea1d6e97a9090c0de91405f8faeb4
tree91130aa307b7f5fdc8f4aabf7eada307f84fa51f
parentf72e7c5b1d156035ed12fab7af9c0bec529d82fb
daklib/checks.py: use apt_pkg.version_compare correctly

version_compare returns values less than, equal to or greater than zero.
This value is not always -1, 0 or 2(!) as the documentation claims.

Reference: http://bugs.debian.org/680891
daklib/checks.py