mirror of
https://github.com/webmin/webmin.git
synced 2026-07-07 02:40:36 +01:00
Merge pull request #1138 from seabres/yum_multiline_patch
Correct yum check-update multiline output
This commit is contained in:
@@ -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(<PKG>) {
|
||||
s/\r|\n//g;
|
||||
if (/^(\S+)\.([^\.]+)\s+(\S+)\s+(\S+)/) {
|
||||
|
||||
Reference in New Issue
Block a user