]> TLD Linux GIT Repositories - packages/ansible.git/commitdiff
- include version when listing available updates
authorMarcin Krol <hawk@tld-linux.org>
Fri, 21 Jun 2019 22:04:24 +0000 (00:04 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 21 Jun 2019 22:04:24 +0000 (00:04 +0200)
poldek.py

index 74672f1f4b86c1bc38c3070f087a251e12fca27b..bc306a6e3a636c1e803f40bb3757f0011c97e3bb 100644 (file)
--- 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]