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