diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-27 13:18:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-27 13:18:18 +0000 |
commit | 919bb9d208f25b2ff05521ad9577ce339e5b8aae (patch) | |
tree | e6f6ef5808abaf54336b266f65b4d0244095f161 | |
parent | a1c8b8d1c574d44876ebf2858d1bb3b4e052a237 (diff) | |
download | rpmdrake-919bb9d208f25b2ff05521ad9577ce339e5b8aae.tar rpmdrake-919bb9d208f25b2ff05521ad9577ce339e5b8aae.tar.gz rpmdrake-919bb9d208f25b2ff05521ad9577ce339e5b8aae.tar.bz2 rpmdrake-919bb9d208f25b2ff05521ad9577ce339e5b8aae.tar.xz rpmdrake-919bb9d208f25b2ff05521ad9577ce339e5b8aae.zip |
(perform_installation) lock the db while performing installation/removal of
packages
-rwxr-xr-x | rpmdrake | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -62,6 +62,7 @@ BEGIN { #- for mcc } use rpmdrake; +use urpm::lock; use urpm::install; use urpm::signature; use urpm::get_pkgs; @@ -1840,6 +1841,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( return 0; } + my $_lock = urpm::lock::urpmi_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, |