diff options
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index ee5b96b1..c1dc48c5 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -682,9 +682,10 @@ sub closure_removal { } sub is_locale_available { - any { $urpm->{depslist}[$_]->flag_selected } keys %{$urpm->{provides}{$_[0]} || {}} and return 1; + my ($name) = @_; + any { $urpm->{depslist}[$_]->flag_selected } keys %{$urpm->{provides}{$name} || {}} and return 1; my $found; - open_rpm_db()->traverse_tag('name', [ $_ ], sub { $found ||= 1 }); + open_rpm_db()->traverse_tag('name', [ $name ], sub { $found ||= 1 }); return $found; } |