aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-20 19:52:46 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-20 19:52:46 +0000
commit52e355ff37dbdbf401b761b710b8d8abb7a42168 (patch)
tree3e322ba321ddc8c7d32aad0163071835192231a7 /Rpmdrake
parentba03c65fb31fe4502eaed5aa39dbbdb1e4217876 (diff)
downloadrpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar
rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar.gz
rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar.bz2
rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar.xz
rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.zip
(is_locale_available) make it slightly faster
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index c1dc48c5..c8812b65 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -685,7 +685,7 @@ sub is_locale_available {
my ($name) = @_;
any { $urpm->{depslist}[$_]->flag_selected } keys %{$urpm->{provides}{$name} || {}} and return 1;
my $found;
- open_rpm_db()->traverse_tag('name', [ $name ], sub { $found ||= 1 });
+ open_rpm_db()->traverse_tag_find('name', $name, sub { $found = 1 });
return $found;
}