mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Force-sort the RPM output to ensure latest version of the multi-package on top of the list.
This commit is contained in:
parent
3c3028f347
commit
f4d9881e61
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ def info(*packages, **attr):
|
|||
out = call['stdout']
|
||||
|
||||
ret = dict()
|
||||
for pkg_info in re.split(r"----*", out):
|
||||
for pkg_info in reversed(sorted(re.split(r"----*", out))):
|
||||
pkg_info = pkg_info.strip()
|
||||
if not pkg_info:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue