shorten var names

pull/1/head
alex 2017-12-23 20:04:09 +01:00
parent cb3ff71f3c
commit 0c083b7899
1 changed files with 4 additions and 4 deletions

8
aur.py
View File

@ -16,10 +16,10 @@ def upgrade(module, helper):
cmd = helper_cmd[helper] + ['-u']
rc, stdout, stderr = module.run_command(cmd, check_rc=True)
rc, out, err = module.run_command(cmd, check_rc=True)
module.exit_json(
changed=not (stdout == '' or 'there is nothing to do' in stdout or 'No AUR update found' in stdout),
changed=not (out == '' or 'there is nothing to do' in out or 'No AUR update found' in out),
msg='upgraded system',
)
@ -32,10 +32,10 @@ def install_packages(module, package_name, helper):
if upgrade:
cmd += ['-u']
rc, stdout, stderr = module.run_command(cmd, check_rc=True)
rc, out, err = module.run_command(cmd, check_rc=True)
module.exit_json(
changed=not (stdout == '' or '-- skipping' in stdout),
changed=not (out == '' or '-- skipping' in out),
msg='installed package',
)