diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-10-20 17:54:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-10-20 17:54:08 +0000 |
commit | be3ca106cfac08d3b87d7d112af75f730e3f08e9 (patch) | |
tree | 0dbbf582444acc4bac6781a3a363a944370e03e2 | |
parent | 57c70584abaa14f93fcf104e4b83d9821bfd5995 (diff) | |
download | perl-URPM-be3ca106cfac08d3b87d7d112af75f730e3f08e9.tar perl-URPM-be3ca106cfac08d3b87d7d112af75f730e3f08e9.tar.gz perl-URPM-be3ca106cfac08d3b87d7d112af75f730e3f08e9.tar.bz2 perl-URPM-be3ca106cfac08d3b87d7d112af75f730e3f08e9.tar.xz perl-URPM-be3ca106cfac08d3b87d7d112af75f730e3f08e9.zip |
fix crashing on undefined packages (#54521)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM.pm | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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) @@ -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 { |