zypper: fix for checking result is None (#3143)
This commit is contained in:
parent
1948bcb9e7
commit
88e940a3e1
1 changed files with 10 additions and 9 deletions
|
@ -267,6 +267,7 @@ def get_cmd(m, subcommand):
|
|||
def set_diff(m, retvals, result):
|
||||
# TODO: if there is only one package, set before/after to version numbers
|
||||
packages = {'installed': [], 'removed': [], 'upgraded': []}
|
||||
if result:
|
||||
for p in result:
|
||||
group = result[p]['group']
|
||||
if group == 'to-upgrade':
|
||||
|
|
Loading…
Reference in a new issue