aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Iranzo Gómez <Pablo.Iranzo@gmail.com>2018-01-10 16:57:28 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-01-16 15:41:51 +0000
commit168479d75c3b748f5411a1d0c6c507d9e9a31288 (patch)
tree1bbf6f7e60b9bbb5e53e53d96bad2226cb2886fd
parent1932d96dcf9071d1180286b96abfd998e20a09fd (diff)
downloadsos-168479d75c3b748f5411a1d0c6c507d9e9a31288.tar.gz
[rpm] Change sort to use -V to use natural version ordering
Closes: #1184, #1185 Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/rpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py
index f5563618..a04cd30d 100644
--- a/sos/plugins/rpm.py
+++ b/sos/plugins/rpm.py
@@ -45,7 +45,7 @@ class Rpm(Plugin, RedHatPlugin):
query_fmt = query_fmt + '%{INSTALLTIME:date}\n"'
filter_cmd = 'awk -F "~~" ' \
- '"{printf \\"%-59s %s\\n\\",\$1,\$2}"|sort -f'
+ '"{printf \\"%-59s %s\\n\\",\$1,\$2}"|sort -V'
add_rpm_cmd(query_fmt, filter_cmd, "installed-rpms", None)