From 55b6e739ab689e89b32a8ae43cc558ed835d8afd Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 1 Nov 2010 22:59:03 +0000 Subject: use iurt_root_command to untar --- lib/Iurt/Chroot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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)"); } -- cgit v1.2.1