From dac76774a4ade59ee159e23c7d2f03650137499a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 22 Dec 2009 23:58:08 -0800 Subject: [PATCH] Handle new yum output format --- software/yum-lib.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/software/yum-lib.pl b/software/yum-lib.pl index af7f6b771..379cdeb6a 100755 --- a/software/yum-lib.pl +++ b/software/yum-lib.pl @@ -30,6 +30,9 @@ while() { 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() { } } } + 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"); }