diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:46 +0000 |
commit | 52e355ff37dbdbf401b761b710b8d8abb7a42168 (patch) | |
tree | 3e322ba321ddc8c7d32aad0163071835192231a7 | |
parent | ba03c65fb31fe4502eaed5aa39dbbdb1e4217876 (diff) | |
download | rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar.gz rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar.bz2 rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.tar.xz rpmdrake-52e355ff37dbdbf401b761b710b8d8abb7a42168.zip |
(is_locale_available) make it slightly faster
-rw-r--r-- | Rpmdrake/gui.pm | 2 |
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; } |