Fix == in python version string matching.
This commit is contained in:
parent
f2515552e4
commit
eade730fc3
2 changed files with 7 additions and 1 deletions
|
@ -529,6 +529,12 @@ class DistInkt(BuildSystem):
|
||||||
):
|
):
|
||||||
return cls(os.path.join(path, "dist.ini"))
|
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):
|
class Make(BuildSystem):
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ def python_spec_to_apt_rels(pkg_name, specs):
|
||||||
rels.extend([{"name": pkg_name, "version": ('>=', deb_version)},
|
rels.extend([{"name": pkg_name, "version": ('>=', deb_version)},
|
||||||
{"name": pkg_name, "version": ('<<', next_maj_deb_version)}])
|
{"name": pkg_name, "version": ('<<', next_maj_deb_version)}])
|
||||||
else:
|
else:
|
||||||
c = {">=": ">=", "<=": "<=", "<": "<<", ">": ">>", "=": "="}[spec[0]]
|
c = {">=": ">=", "<=": "<=", "<": "<<", ">": ">>", "==": "="}[spec[0]]
|
||||||
rels.append([{"name": pkg_name, "version": (c, deb_version)}])
|
rels.append([{"name": pkg_name, "version": (c, deb_version)}])
|
||||||
return rels
|
return rels
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue