summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 22:31:23 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 22:31:23 +0000
commit43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b (patch)
tree90fcfa9899cbf0fb8a3b3262b0415781ec331d13
parent21e13305eabb126bbafca4d34c9c2f75a8c04187 (diff)
downloadurpmi-43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b.tar
urpmi-43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b.tar.gz
urpmi-43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b.tar.bz2
urpmi-43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b.tar.xz
urpmi-43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b.zip
(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)
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
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} .= $_;