diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-04-27 23:00:24 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-04-27 23:00:24 +0000 |
commit | f7aa5e9ae83d55848e4a937dc2e352d6727b5584 (patch) | |
tree | 5790b4a5a14d99bd6a7e96c2ff4c7dcab81c234f | |
parent | 8e8084137fe3abd6e6240bff14956c987697318d (diff) | |
download | iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar.gz iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar.bz2 iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar.xz iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.zip |
Give up chroot creation when untar fails
-rw-r--r-- | lib/Iurt/Chroot.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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; } # <mrl> 20071106 Second try? |