aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-04-27 23:00:24 +0000
committerPascal Terjan <pterjan@mageia.org>2011-04-27 23:00:24 +0000
commitf7aa5e9ae83d55848e4a937dc2e352d6727b5584 (patch)
tree5790b4a5a14d99bd6a7e96c2ff4c7dcab81c234f /lib
parent8e8084137fe3abd6e6240bff14956c987697318d (diff)
downloadiurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar
iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar.gz
iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar.bz2
iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.tar.xz
iurt-f7aa5e9ae83d55848e4a937dc2e352d6727b5584.zip
Give up chroot creation when untar fails
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Chroot.pm3
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?