diff options
Diffstat (limited to 'lib/Iurt')
-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)"); } |