From e19e9113fba7a5ace59694c404b636e211b08977 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Aug 2007 21:44:40 +0000 Subject: (get_updates_description) further factorize --- urpm.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/urpm.pm b/urpm.pm index b21a5b43..1f694bd4 100644 --- a/urpm.pm +++ b/urpm.pm @@ -249,8 +249,7 @@ sub get_updates_description { /^Updated: (.+)/ && $section eq 'pkg' and $cur->{updated} = $1; /^Importance: (.+)/ && $section eq 'pkg' and $cur->{importance} = $1; /^%(pre|description)/ and do { $section = $1; next }; - $section eq 'pre' and $cur->{pre} .= $_; - $section eq 'description' and $cur->{description} .= $_; + $section =~ /^(pre|description)\z/ and $cur->{$1} .= $_; } } \%update_descr; -- cgit v1.2.1