Commit fe43034e authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Improve constraint management

parent f53318ac
......@@ -25,7 +25,8 @@ def main():
'borgbackup': '1.1.17',
'jinja2': '3.0.3',
'charset-normalizer': '2.0.12',# Certbot fails with 2.1.0
'blinker': '1.4'# Ubuntu package
'blinker': '1.4',# Ubuntu package
'entrypoints': '0.3'# Ubuntu package
}
mode = module.params['mode']
executable = module.params['executable']
......@@ -45,7 +46,8 @@ def main():
if line != '' and line[0] == '[':
updates = json.loads(line)
for item in updates:
if item['name'] in constraints and constraints[item['name']] == item['version']:
name = item['name'].lower()
if name in constraints and constraints[name] == item['version']:
# This doesn't need an update
pass
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment