summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 21:44:40 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 21:44:40 +0000
commite19e9113fba7a5ace59694c404b636e211b08977 (patch)
tree61f76135bc868ebfe0fdaa5944133ea6bb315337
parente7e70f6b19a926ff52fc89df07bc7667da8694f7 (diff)
downloadurpmi-e19e9113fba7a5ace59694c404b636e211b08977.tar
urpmi-e19e9113fba7a5ace59694c404b636e211b08977.tar.gz
urpmi-e19e9113fba7a5ace59694c404b636e211b08977.tar.bz2
urpmi-e19e9113fba7a5ace59694c404b636e211b08977.tar.xz
urpmi-e19e9113fba7a5ace59694c404b636e211b08977.zip
(get_updates_description) further factorize
-rw-r--r--urpm.pm3
1 files changed, 1 insertions, 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;