From b6230395a5a1b834940752eeb01aaac0969f247b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 17 Jul 2020 17:54:27 +0100 Subject: [PATCH] sg-report-flight: Break out printout_flightheader No functional change. Signed-off-by: Ian Jackson --- sg-report-flight | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 1563100..2ab1637 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -783,6 +783,14 @@ sub includes ($) { } } +sub printout_flightheader ($) { + my ($r) = @_; + bodyprint <{Flight} $branch $r->{FlightInfo}{blessing} [$r->{FlightInfo}{intended}] +$c{ReportHtmlPubBaseUrl}/$r->{Flight}/ +END +} + sub printout { my ($r, @failures) = @_; $header_text = ''; @@ -793,10 +801,9 @@ sub printout { $r->{Flight}: $r->{OutcomeSummary} END includes(\@includebeginfiles); - bodyprint <{Flight} $branch $r->{FlightInfo}{blessing} [$r->{FlightInfo}{intended}] -$c{ReportHtmlPubBaseUrl}/$r->{Flight}/ -END + + printout_flightheader($r); + if (defined $r->{Overall}) { bodyprint "\n"; bodyprint $r->{Overall}; -- 2.39.5