From 684cfecda94e74aff8f8c652a9e29c1b14663939 Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Thu, 11 Apr 2013 23:58:15 +0200 Subject: [PATCH] package and upgrade are not mutually exclusive, but when both were set, upgrade didn't happen --- library/apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/apt b/library/apt index 69d7158815e..ac4fcf316b2 100644 --- a/library/apt +++ b/library/apt @@ -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']