if in one line

pull/25/head
kewl fft 2019-04-11 20:03:55 +01:00
parent 473d06fe54
commit 2766c2661c
1 changed files with 1 additions and 4 deletions

5
aur.py
View File

@ -184,10 +184,7 @@ def install_packages(module, packages, use, skip_installed, aur_only):
changed_iter = changed_iter or not (out == '' or '-- skipping' in out or 'nothing to do' in out)
if changed_iter:
message = 'installed package(s)'
else:
message = 'package(s) already installed'
message = 'installed package(s)' if changed_iter else 'package(s) already installed'
module.exit_json(
changed=changed_iter,