aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-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?