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

@ -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