diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-22 23:27:59 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-22 23:27:59 +0000 |
commit | 4b734e511a10adc654a398304a779d9ede75fd14 (patch) | |
tree | bf0d800098d6069af5b200662c6721300a1a3d30 /rpmdrake | |
parent | d63f1a4fd652bef657be2afc70f500777023f9a6 (diff) | |
download | rpmdrake-4b734e511a10adc654a398304a779d9ede75fd14.tar rpmdrake-4b734e511a10adc654a398304a779d9ede75fd14.tar.gz rpmdrake-4b734e511a10adc654a398304a779d9ede75fd14.tar.bz2 rpmdrake-4b734e511a10adc654a398304a779d9ede75fd14.tar.xz rpmdrake-4b734e511a10adc654a398304a779d9ede75fd14.zip |
revert r57586:57588, aka do not keep around the rpm db opened, thus making mcc closable again in mcc (#26069)
Diffstat (limited to 'rpmdrake')
-rwxr-xr-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ sub do_search($$$$$$$) { N("Please wait, searching..."), $w->{real_window}, sub { - $db->traverse(sub { + open_db()->traverse(sub { push @search_results, map { if_($_ =~ $entry_rx, urpm_name($_[0])) } $_[0]->files; }); @search_results = grep { exists $pkgs->{$_} } uniq(@search_results); @@ -361,7 +361,7 @@ sub run_treeview_dialog { [ N("/_File") . N("/_Reset the selection"), undef, sub { if ($MODE ne 'remove') { $urpm->disable_selected( - $db, $urpm->{state}, + open_db(), $urpm->{state}, map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{pkg}) } keys %$pkgs, ); } |