Skip to content

Commit f7faa9d

Browse files
committed
indexer: improve what we provide as overall status
1 parent 3955013 commit f7faa9d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/PAUSE/dist.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,12 @@ sub _update_mail_content_when_things_were_indexed {
340340
my $Lstatus = 0;
341341
my $intro_written;
342342

343-
my $all_succeeded = @$statuses == grep {; $_->{is_success} } @$statuses;
343+
my $successes = grep {; $_->{is_success} } @$statuses;
344344

345345
unless (defined $$status_ref) {
346-
$$status_ref = $all_succeeded ? "OK" : "Failed";
346+
$$status_ref = $successes == @$statuses ? "OK"
347+
: $successes ? "partially successful"
348+
: "Failed";
347349

348350
push @$m_ref, "Status of this distro: $$status_ref\n";
349351
push @$m_ref, "="x(length($$status_ref)+23), "\n\n";

0 commit comments

Comments
 (0)