summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index 442c8f6a..c958dcda 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -235,19 +235,19 @@ sub get_updates_description {
foreach my $medium (@update_medias) {
foreach (cat_utf8(urpm::media::statedir_descriptions($urpm, $medium)), '%package dummy') {
- /^%package (.+)/ and do {
+ /^%package +(.+)/ and do {
if (exists $cur->{importance} && !member($cur->{importance}, qw(security bugfix))) {
$cur->{importance} = 'normal';
}
- $update_descr{$_} = $cur foreach @{$cur->{pkgs}};
+ $update_descr{$_} = $cur foreach @{$cur->{pkgs} || []};
$cur = {};
$cur->{pkgs} = [ split /\s/, $1 ];
$cur->{medium} = $medium->{name};
$section = 'pkg';
next;
};
- /^Updated?: (.+)/ && $section eq 'pkg' and $cur->{updated} = $1;
- /^Importance: (.+)/ && $section eq 'pkg' and $cur->{importance} = $1;
+ /^Updated?: +(.+)/ && $section eq 'pkg' and $cur->{updated} = $1;
+ /^Importance: +(.+)/ && $section eq 'pkg' and $cur->{importance} = $1;
/^(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} .= $_;