From 0677a2583acb7f63298a6b7a560e4364317e1f05 Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Fri, 6 Jul 2012 16:27:24 +0000 Subject: Always mark build as failed in case of error (allows to detect things like errors in %clean). --- iurt2 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/iurt2 b/iurt2 index 9528ddb..8529c45 100755 --- a/iurt2 +++ b/iurt2 @@ -976,14 +976,12 @@ retry: }, freq => 1)) { - if (!glob "$chroot_tmp/home/$luser/rpm/RPMS/*/*.rpm") { - $cache->{failure}{$srpm} = 1; - $run{status}{$srpm} = 'build_failure'; - # 20060615 - dump_cache_par(\%run); - dump_status($local_spool, \%run); - next; - } + $cache->{failure}{$srpm} = 1; + $run{status}{$srpm} = 'build_failure'; + # 20060615 + dump_cache_par(\%run); + dump_status($local_spool, \%run); + next; } # do some cleaning if the compilation is successful -- cgit v1.2.1