Fix regexp to match actual output

https://github.com/webmin/webmin/issues/2501
This commit is contained in:
Jamie Cameron
2025-06-22 15:58:07 -07:00
parent c429fbb202
commit 70589cf88a

View File

@@ -119,7 +119,7 @@ while(<CMD>) {
$pkg =~ s/\-\d.*$//; # Strip version number from end
push(@rv, $pkg);
}
elsif (/^\s+(Upgrading|Installing)\s+(\S+)/) {
elsif (/\]\s+(Upgrading|Installing)\s+(\S+)/) {
# Line like :
# [3/8] Upgrading libcurl-0:8.11.1-5.fc42 100% ...
local $pkg = $2;