From a9526f3edd1384b57e5a546755b71efccd627806 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sat, 22 Jun 2019 00:04:24 +0200 Subject: [PATCH] - include version when listing available updates --- poldek.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.44.0