diff options
author | Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com> | 2018-01-10 16:57:28 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-01-16 15:41:51 +0000 |
commit | 168479d75c3b748f5411a1d0c6c507d9e9a31288 (patch) | |
tree | 1bbf6f7e60b9bbb5e53e53d96bad2226cb2886fd | |
parent | 1932d96dcf9071d1180286b96abfd998e20a09fd (diff) | |
download | sos-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.py | 2 |
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) |