From 50f6dc64bd5dff2892da335a854db3a37433625b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 5 Mar 2007 11:50:38 +0000 Subject: (perform_installation) unlock the urpmi database further earlier, as soon as the last transaction is completed so that we don"t needlessly lock the db while displaying error or success message. --- Rpmdrake/pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 30317017..96fb94e1 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -688,6 +688,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( } } + undef $lock; if (@rpms_install || @rpms_upgrade || @to_remove) { if (@missing_errors) { interactive_msg( @@ -701,7 +702,6 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( } Rpmdrake::gurpm::end(); - undef $lock; if (@errors || @error_msgs) { interactive_msg( -- cgit v1.2.1