From: Richard W.M. Jones Date: Mon, 11 Jun 2012 10:37:56 +0000 (+0100) Subject: Display reasons for failures when program finishes. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b5ec0d3e9656b2126160c19e4998214691303a9b;p=mass-rebuild.git Display reasons for failures when program finishes. --- diff --git a/mass-rebuild.pl b/mass-rebuild.pl index a3e628d..59ca070 100755 --- a/mass-rebuild.pl +++ b/mass-rebuild.pl @@ -303,6 +303,13 @@ foreach $pkg (@build_order) { $package_notes{$pkg}{build_done} = 1; } +# Finish off by printing the package notes for builds that failed. +foreach $pkg (@build_order) { + if (exists $package_notes{$pkg}{error}) { + print "$pkg failed, reason: ", $package_notes{$pkg}{error}, "\n"; + } +} + sub do_build_and_wait { my $pkg = shift;