summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}};