From bfd1631524d5987f5aa692b00190aa5db3c2645c Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 21 Jun 2018 10:56:38 +0100 Subject: [rpm] do not double escape characters in raw string When switching a Python string to a raw string escape sequences like "\\n" must have the first `\` stripped or the literal value will be taken when the string is used. Signed-off-by: Bryn M. Reeves --- sos/plugins/rpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/plugins/rpm.py b/sos/plugins/rpm.py index f26c4b11..c53b7e40 100644 --- a/sos/plugins/rpm.py +++ b/sos/plugins/rpm.py @@ -40,7 +40,7 @@ class Rpm(Plugin, RedHatPlugin): query_fmt = query_fmt + '%{INSTALLTIME:date}\n"' filter_cmd = 'awk -F "~~" ' \ - r'"{printf \\"%-59s %s\\n\\",\$1,\$2}"|sort -V' + r'"{printf \"%-59s %s\n\",\$1,\$2}"|sort -V' add_rpm_cmd(query_fmt, filter_cmd, "installed-rpms", None) -- cgit