diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | rpmdrake | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- rpmdrake: + o make failing to open RPM DB non fatal when reseting selection (mga#7352) + Version 5.36 - 31 August 2012, Pascal Terjan - adapt to urpmi-7.5 @@ -550,8 +550,13 @@ sub run_treeview_dialog { ), [ N("/_File") . N("/_Reset the selection"), undef, sub { if ($MODE ne 'remove') { + my $db = eval { open_rpm_db() }; + if (!ref($db)) { + statusbar_msg(N("Reset aborted (RPM DB is locked by another process)"), 1); + return; + }; $urpm->disable_selected( - open_rpm_db(), $urpm->{state}, + $db, $urpm->{state}, map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{pkg}) } keys %$pkgs, ); } |