From cdfb0e884334300a5794f642e030811895f1dca1 Mon Sep 17 00:00:00 2001 From: BRESTAN Rainer Date: Thu, 14 Nov 2019 12:35:26 +0100 Subject: [PATCH] Correct yum check-update multiline output --- software/yum-lib.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/software/yum-lib.pl b/software/yum-lib.pl index 189d1e2b6..e62680ce8 100755 --- a/software/yum-lib.pl +++ b/software/yum-lib.pl @@ -306,7 +306,8 @@ sub update_system_updates { local @rv; local %done; -&open_execute_command(PKG, "$yum_command check-update 2>/dev/null", 1, 1); +&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; if (/^(\S+)\.([^\.]+)\s+(\S+)\s+(\S+)/) {