From 43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Aug 2007 22:31:23 +0000 Subject: (get_updates_description) backport part of rafael commit in CVS r1.301:1.302: Make the parsing of "descriptions" file a bit better skip other tests once matched (no gain) --- urpm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index c958dcda..f3d49d98 100644 --- a/urpm.pm +++ b/urpm.pm @@ -246,8 +246,8 @@ sub get_updates_description { $section = 'pkg'; next; }; - /^Updated?: +(.+)/ && $section eq 'pkg' and $cur->{updated} = $1; - /^Importance: +(.+)/ && $section eq 'pkg' and $cur->{importance} = $1; + /^Updated?: +(.+)/ && $section eq 'pkg' and do { $cur->{updated} = $1; next }; + /^Importance: +(.+)/ && $section eq 'pkg' and do { $cur->{importance} = $1; next }; /^(ID|URL): +(.+)/ && $section eq 'pkg' and do { $cur->{$1} = $2; next }; /^%(pre|description)/ and do { $section = $1; next }; $section =~ /^(pre|description)\z/ and $cur->{$1} .= $_; -- cgit v1.2.1