X-Git-Url: https://git.tld-linux.org/?p=packages%2Fansible.git;a=blobdiff_plain;f=poldek.py;h=bc306a6e3a636c1e803f40bb3757f0011c97e3bb;hp=74672f1f4b86c1bc38c3070f087a251e12fca27b;hb=5f3a4ebf1d408299200ad55e6245b91b23ad7f19;hpb=870abe4e7fb61ded053d794a9f391727c4ae90ce diff --git a/poldek.py b/poldek.py index 74672f1..bc306a6 100644 --- a/poldek.py +++ b/poldek.py @@ -141,7 +141,7 @@ def update_package_db(module, poldek_path): def upgrade(module, poldek_path): cmdupgrade = "%s -v --noask --upgrade-dist %s" % (poldek_path, module.params["upgrade_extra_args"]) - cmdupgradeable = "%s -q --shcmd='ls -n --installed --upgradeable' %s" % (poldek_path, module.params["upgrade_extra_args"]) + cmdupgradeable = "%s -q --shcmd='ls --upgradeable --qf=\"%%{NAME}-%%{VERSION}-%%{RELEASE}\n\"' %s" % (poldek_path, module.params["upgrade_extra_args"]) rc, stdout, stderr = module.run_command(cmdupgradeable, check_rc=False) packages = stdout.split('\n')[:-1]