diff options
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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", ]); } |