From f7aa5e9ae83d55848e4a937dc2e352d6727b5584 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 27 Apr 2011 23:00:24 +0000 Subject: Give up chroot creation when untar fails --- lib/Iurt/Chroot.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 06e0421..a046e02 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -80,6 +80,9 @@ sub clean_chroot { # First try if (sudo($run, $config, '--untar', $chroot_tar, $chroot)) { create_build_chroot($chroot, $chroot_tar, $run, $config); + } else { + plog('ERROR', "Failed to untar chroot"); + return; } # 20071106 Second try? -- cgit v1.2.1