aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-11-12 09:36:39 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-11-12 09:36:39 +0000
commit3f28445fdfa9a063db48a022a100b365429d666f (patch)
tree49396851b4659bb294d67e7e57614e107bf0bde8 /lib/Iurt/Chroot.pm
parentd5cf6dd9c5a5e191f2e6b6e2c4f7ec0f77c77647 (diff)
downloadiurt-3f28445fdfa9a063db48a022a100b365429d666f.tar
iurt-3f28445fdfa9a063db48a022a100b365429d666f.tar.gz
iurt-3f28445fdfa9a063db48a022a100b365429d666f.tar.bz2
iurt-3f28445fdfa9a063db48a022a100b365429d666f.tar.xz
iurt-3f28445fdfa9a063db48a022a100b365429d666f.zip
- Put some more debugging into command execution process.
- Lowered free disk space tolerance from 100% to 99%, as 100% could be too late.
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 b0d48cc..53649ac 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -439,6 +439,7 @@ sub create_chroot {
plog("rebuild chroot tarball");
$rebuild = 1;
if (!build_chroot($run, $config, $tmp_chroot, $chroot_tar, $opt)) {
+ plog('NOTIFY', "creating chroot failed.");
$clean->();
sudo($run, $config, '--rm', '-r', $chroot, $chroot_tar);
return;
@@ -461,6 +462,7 @@ sub create_chroot {
sudo($run, $config, '--rm', '-r', $tmp_chroot);
mkdir $tmp_chroot;
if (!build_chroot($run, $config, $tmp_chroot, $chroot_tar, $opt)) {
+ plog('NOTIFY', "creating chroot failed.");
$clean->();
return;
}
@@ -472,6 +474,7 @@ sub create_chroot {
plog('ERR', "can't check chroot, recreating");
if (!build_chroot($run, $config, $tmp_chroot, $chroot_tar, $opt)) {
+ plog('NOTIFY', "creating chroot failed.");
$clean->();
return;
}