aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-10-20 17:54:08 +0000
committerThierry Vignaud <tv@mandriva.org>2010-10-20 17:54:08 +0000
commitbe3ca106cfac08d3b87d7d112af75f730e3f08e9 (patch)
tree0dbbf582444acc4bac6781a3a363a944370e03e2 /URPM.pm
parent57c70584abaa14f93fcf104e4b83d9821bfd5995 (diff)
downloadperl-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)
Diffstat (limited to 'URPM.pm')
-rw-r--r--URPM.pm2
1 files changed, 1 insertions, 1 deletions
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 {