Package: python-apt Version: 0.7.94.2 $ python -c 'import apt_pkg; apt_pkg.init(); print apt_pkg.VersionCompare("1", "1-0")' -1 This should print 0 because the versions are equal, according to policy and dpkg.