diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-17 13:42:07 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-17 13:42:07 +0000 |
commit | 3b232edffd7a9b13045d0272777018e92537030c (patch) | |
tree | 77df746e82c168f818888ebcd8a9aa7f4c20b49a | |
parent | 020d6017de64a4a9410413410285fd3c777b0f23 (diff) | |
download | rpmdrake-3b232edffd7a9b13045d0272777018e92537030c.tar rpmdrake-3b232edffd7a9b13045d0272777018e92537030c.tar.gz rpmdrake-3b232edffd7a9b13045d0272777018e92537030c.tar.bz2 rpmdrake-3b232edffd7a9b13045d0272777018e92537030c.tar.xz rpmdrake-3b232edffd7a9b13045d0272777018e92537030c.zip |
Speed up scanning rpmdb for locales
-rwxr-xr-x | rpmdrake | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -510,9 +510,10 @@ sub run_treeview_dialog { my $is_locale_available = sub { any { $urpm->{depslist}[$_]->flag_selected } keys %{$urpm->{provides}{$_[0]} || {}} and return 1; - my $found; - db->traverse_tag('name', [ $_ ], sub { $found ||= 1 }); - return $found; + db->traverse_tag('name', [ $_ ], sub { goto traversed }); + return 0; + traversed: + return 1; }; my $callback_choices = sub { my (undef, $db, $state, $choices) = @_; |