aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--URPM.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 127a4e2..e149424 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix crashing on undefined packages (#54521)
+
Version 3.36 - 23 July 2010
- Fix wrong deferencement on HASH (warning triggered by perl 5.12)
diff --git a/URPM.pm b/URPM.pm
index 72278a1..541e292 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -30,7 +30,7 @@ sub set_nofatal { $_[0]{nofatal} = $_[1] }
sub packages_providing {
my ($urpm, $name) = @_;
- map { $urpm->{depslist}[$_] } keys %{$urpm->{provides}{$name} || {}};
+ grep { $_ } map { $urpm->{depslist}[$_] } keys %{$urpm->{provides}{$name} || {}};
}
sub packages_obsoleting {