diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 22:31:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 22:31:23 +0000 |
commit | 43f4dd558a5f9ebb6c91c0f39b18dbccc6e6799b (patch) | |
tree | 90fcfa9899cbf0fb8a3b3262b0415781ec331d13 /urpm.pm | |
parent | 21e13305eabb126bbafca4d34c9c2f75a8c04187 (diff) | |
download | urpmi-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)
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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} .= $_; |