summaryrefslogtreecommitdiffstats
path: root/urpm/lock.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-29 14:28:10 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-29 14:28:10 +0000
commitaa12bda21e9f895a0103c5e2d6cf67cb5c588db0 (patch)
tree21e618798cae71896a985bc96c8c0db1e7a3ab62 /urpm/lock.pm
parent7658320581abb96b0d6ccf5eccba94de95b59534 (diff)
downloadurpmi-aa12bda21e9f895a0103c5e2d6cf67cb5c588db0.tar
urpmi-aa12bda21e9f895a0103c5e2d6cf67cb5c588db0.tar.gz
urpmi-aa12bda21e9f895a0103c5e2d6cf67cb5c588db0.tar.bz2
urpmi-aa12bda21e9f895a0103c5e2d6cf67cb5c588db0.tar.xz
urpmi-aa12bda21e9f895a0103c5e2d6cf67cb5c588db0.zip
(rpm_db) lock rpmdb in /var/lib/rpm rather than in /var/lib/urpmi thus fixing locking with --root
Diffstat (limited to 'urpm/lock.pm')
-rw-r--r--urpm/lock.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/lock.pm b/urpm/lock.pm
index dbd237ba..ea59a983 100644
--- a/urpm/lock.pm
+++ b/urpm/lock.pm
@@ -18,7 +18,7 @@ my ($LOCK_SH, $LOCK_EX, $LOCK_NB, $LOCK_UN) = (1, 2, 4, 8);
# (options: nofatal, wait)
sub rpm_db {
my ($urpm, $b_exclusive, %options) = @_;
- my $f = ($urpm->{root} && !$urpm->{urpmi_root} ? "$urpm->{root}/" : '') . "$urpm->{statedir}/.RPMLOCK";
+ my $f = ($urpm->{root} ? "$urpm->{root}/" : '') . "/var/lib/rpm/.RPMLOCK";
urpm::lock->new($urpm, $f, 'rpm', $b_exclusive, %options);
}
# (options: nofatal, wait)