mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Handle new yum output format
This commit is contained in:
@@ -30,6 +30,9 @@ while(<CMD>) {
|
||||
push(@rv, $2);
|
||||
}
|
||||
elsif (/^(Installed|Dependency Installed|Updated|Dependency Updated):\s*(.*)/) {
|
||||
# Line like :
|
||||
# Updated:
|
||||
# wbt-virtual-server-theme.x86
|
||||
local @pkgs = split(/\s+/, $2);
|
||||
if (!@pkgs) {
|
||||
# Wrapped to next line
|
||||
@@ -47,6 +50,11 @@ while(<CMD>) {
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif (/^\s+Updating\s+:\s+(\S+)/) {
|
||||
# Line like :
|
||||
# Updating : wbt-virtual-server-theme 1/2
|
||||
push(@rv, $1);
|
||||
}
|
||||
if (!/ETA/ && !/\%\s+done\s+\d+\/\d+\s*$/) {
|
||||
print &html_escape($_."\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user