aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-27 13:28:46 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-27 13:28:46 +0000
commit8edc79066aca4b55aa6369287791f1959ac0f80f (patch)
tree5ca0a0e9b46dcc4def8d4c7f2ee65506910f68bd
parent6b7691af2544c676daa88a8755c9aece3c276ec2 (diff)
downloadrpmdrake-8edc79066aca4b55aa6369287791f1959ac0f80f.tar
rpmdrake-8edc79066aca4b55aa6369287791f1959ac0f80f.tar.gz
rpmdrake-8edc79066aca4b55aa6369287791f1959ac0f80f.tar.bz2
rpmdrake-8edc79066aca4b55aa6369287791f1959ac0f80f.tar.xz
rpmdrake-8edc79066aca4b55aa6369287791f1959ac0f80f.zip
(perform_installation) lock the rpm db while performing installation or removal of packages
-rwxr-xr-xrpmdrake1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 5b40dd11..fec584d5 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1849,6 +1849,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
}
my $_lock = urpm::lock::urpmi_db($urpm, 'exclusive');
+ my $_rpm_lock = urpm::lock::rpm_db($urpm, 'exclusive');
my %pkgs = map { $_->id => undef } grep { $_->flag_selected } @{$urpm->{depslist}};
my ($local_sources, $list, $local_to_removes) = urpm::get_pkgs::selected2list($urpm,
\%pkgs,