summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-10 22:28:32 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-10 22:28:32 +0000
commit76f4a468bd97860af09ef6a6228bebb7ce97692b (patch)
tree83e437b6c2980aee6322e93c36db9faa94ecda29 /urpm.pm
parent5942fb52d138b09be0ada1784dabaa6838d7afae (diff)
(get_updates_description) use member()
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 443186b5..442c8f6a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -236,7 +236,7 @@ sub get_updates_description {
foreach my $medium (@update_medias) {
foreach (cat_utf8(urpm::media::statedir_descriptions($urpm, $medium)), '%package dummy') {
/^%package (.+)/ and do {
- if (exists $cur->{importance} && $cur->{importance} ne "security" && $cur->{importance} ne "bugfix") {
+ if (exists $cur->{importance} && !member($cur->{importance}, qw(security bugfix))) {
$cur->{importance} = 'normal';
}
$update_descr{$_} = $cur foreach @{$cur->{pkgs}};