From d408230132afd121d76cee782970c580e1adb6c9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 4 Feb 2023 20:52:57 -0800 Subject: [PATCH] Only the yum command combines lines --- software/yum-lib.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/software/yum-lib.pl b/software/yum-lib.pl index 9066a11f1..1462443b8 100755 --- a/software/yum-lib.pl +++ b/software/yum-lib.pl @@ -326,7 +326,12 @@ sub update_system_updates { local @rv; local %done; -&open_execute_command(PKG, "$yum_command check-update 2>/dev/null | tr '\n' '#' | sed -e 's/# / /g' | tr '#' '\n'", 1, 1); +if ($yum_command =~ /dnf/) { + &open_execute_command(PKG, "$yum_command check-update 2>/dev/null", 1, 1); + } +else { + &open_execute_command(PKG, "$yum_command check-update 2>/dev/null | tr '\n' '#' | sed -e 's/# / /g' | tr '#' '\n'", 1, 1); + } while() { s/\r|\n//g;