package and upgrade are not mutually exclusive, but when both were set, upgrade didn't happen

parent d3dee7a8
......@@ -260,7 +260,7 @@ def main():
if p['update_cache']:
cache.update()
cache.open(progress=None)
if not p['package']:
if not p['package'] and not p['upgrade']:
module.exit_json(changed=False)
force_yes = p['force']
......
Markdown is supported
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