Force-sort the RPM output to ensure latest version of the multi-package on top of the list.

This commit is contained in:
Bo Maryniuk 2016-03-30 12:14:21 +02:00
parent 3c3028f347
commit f4d9881e61

View file

@ -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