Fix == in python version string matching.

This commit is contained in:
Jelmer Vernooij 2021-03-17 18:36:02 +00:00
parent f2515552e4
commit eade730fc3
2 changed files with 7 additions and 1 deletions

View file

@ -529,6 +529,12 @@ class DistInkt(BuildSystem):
):
return cls(os.path.join(path, "dist.ini"))
def get_declared_dependencies(self):
import subprocess
out = subprocess.check_output(["dzil", "authordeps"])
for entry in out.splitlines():
yield "build", PerlModuleRequirement(entry.decode())
class Make(BuildSystem):

View file

@ -108,7 +108,7 @@ def python_spec_to_apt_rels(pkg_name, specs):
rels.extend([{"name": pkg_name, "version": ('>=', deb_version)},
{"name": pkg_name, "version": ('<<', next_maj_deb_version)}])
else:
c = {">=": ">=", "<=": "<=", "<": "<<", ">": ">>", "=": "="}[spec[0]]
c = {">=": ">=", "<=": "<=", "<": "<<", ">": ">>", "==": "="}[spec[0]]
rels.append([{"name": pkg_name, "version": (c, deb_version)}])
return rels