diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-27 13:28:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-27 13:28:46 +0000 |
commit | 8edc79066aca4b55aa6369287791f1959ac0f80f (patch) | |
tree | 5ca0a0e9b46dcc4def8d4c7f2ee65506910f68bd | |
parent | 6b7691af2544c676daa88a8755c9aece3c276ec2 (diff) | |
download | rpmdrake-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-x | rpmdrake | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |