summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-29 14:27:22 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-29 14:27:22 +0000
commit7658320581abb96b0d6ccf5eccba94de95b59534 (patch)
tree42abdc7d3f258e37dc440ac1df97925cf3407b94 /urpm.pm
parent4e2e33173417b3dc03aefd090be77a155f293109 (diff)
downloadurpmi-7658320581abb96b0d6ccf5eccba94de95b59534.tar
urpmi-7658320581abb96b0d6ccf5eccba94de95b59534.tar.gz
urpmi-7658320581abb96b0d6ccf5eccba94de95b59534.tar.bz2
urpmi-7658320581abb96b0d6ccf5eccba94de95b59534.tar.xz
urpmi-7658320581abb96b0d6ccf5eccba94de95b59534.zip
(create_var_lib_rpm) enable to lock chrooted rpmdb with --root too
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index 547b299e..a75e333d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -73,7 +73,7 @@ sub set_files {
);
$urpm->{$_} = $h{$_} foreach keys %h;
- create_var_lib_rpm($urpm, $urpmi_root, %h);
+ create_var_lib_rpm($urpm, %h);
# policy is too use chroot environment only for --urpmi-root, not for --root:
if ($urpmi_root && -e "$urpmi_root/etc/rpm/macros") {
@@ -82,12 +82,12 @@ sub set_files {
}
sub create_var_lib_rpm {
- my ($urpm, $urpmi_root, %h) = @_;
+ my ($urpm, %h) = @_;
require File::Path;
File::Path::mkpath([ $h{statedir},
(map { "$h{cachedir}/$_" } qw(headers partial rpms)),
dirname($h{config}),
- "$urpmi_root/var/lib/rpm",
+ "$urpm->{root}/var/lib/rpm",
]);
}