diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-01 22:59:03 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-01 22:59:03 +0000 |
commit | 55b6e739ab689e89b32a8ae43cc558ed835d8afd (patch) | |
tree | d606a339b11bfed35a1aa2dd724e587e3e87ff9c /lib | |
parent | 4faffe3f27f295787b446bbfd5ad65725962a88b (diff) | |
download | iurt-55b6e739ab689e89b32a8ae43cc558ed835d8afd.tar iurt-55b6e739ab689e89b32a8ae43cc558ed835d8afd.tar.gz iurt-55b6e739ab689e89b32a8ae43cc558ed835d8afd.tar.bz2 iurt-55b6e739ab689e89b32a8ae43cc558ed835d8afd.tar.xz iurt-55b6e739ab689e89b32a8ae43cc558ed835d8afd.zip |
use iurt_root_command to untar
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/Chroot.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 3c539f4..ba7227e 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -78,7 +78,7 @@ sub clean_chroot { } # First try - if (system($sudo, 'tar', '-C', $chroot, '-xf', $chroot_tar)) { + if (sudo($run, $config, '--untar', $chroot_tar, $chroot)) { create_build_chroot($chroot, $chroot_tar, $run, $config); } @@ -491,7 +491,7 @@ sub create_chroot { $urpmi->clean_urpmi_process($chroot); sudo($run, $config, '--rm', '-r', $chroot, $tmp_tar); mkdir_p $chroot; - system($sudo, 'tar', 'xf', $chroot_tar, '-C', $chroot); + sudo($run, $config, '--untar', $chroot_tar, $chroot); plog('NOTIFY', "chroot recreated in $chroot_tar (live in $chroot)"); } |