aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-25 17:14:58 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-25 17:14:58 +0000
commitc369fef374176fe49d4938c035d89e26035d3c65 (patch)
tree05d124a080c0ae587ebe93efee9cc80f4348e596 /iurt2
parent1be4143fc7be0404b6e60ba393a2f87c73f7c7b1 (diff)
downloadiurt-c369fef374176fe49d4938c035d89e26035d3c65.tar
iurt-c369fef374176fe49d4938c035d89e26035d3c65.tar.gz
iurt-c369fef374176fe49d4938c035d89e26035d3c65.tar.bz2
iurt-c369fef374176fe49d4938c035d89e26035d3c65.tar.xz
iurt-c369fef374176fe49d4938c035d89e26035d3c65.zip
catch chroot creation failures
(see eg http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120225155856.tv.valstar.5624/log/botcmd.1330185537.ecosse.log)
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt25
1 files changed, 4 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index c0daad4..bed57d9 100755
--- a/iurt2
+++ b/iurt2
@@ -867,7 +867,10 @@ retry:
$union_id = $u_id;
}
- $urpmi->urpmi_command($chroot_tmp, $luser);
+ if (!$urpmi->urpmi_command($chroot_tmp, $luser)) {
+ plog('DEBUG', "Creating chroot failed.\nCommand was: $chroot_tmp");
+ next;
+ };
$srpm =~ /(.*)-[^-]+-[^-]+\.src\.rpm$/ or next;
my ($maintainer, $cc);
if (!$run{warn}) {