]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_mirror: break out of fgrp fetch iteration early
authorEric Wong <e@80x24.org>
Mon, 28 Nov 2022 05:32:30 +0000 (05:32 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Nov 2022 23:39:00 +0000 (23:39 +0000)
Don't queue up more work if we already have a failure somewhere.

lib/PublicInbox/LeiMirror.pm

index 04e5495561e1533b18e25835c46ddec77ebc689f..0508c9a8c4aad99ca3cf2b8adddd92cb73a1c1cb 100644 (file)
@@ -379,6 +379,7 @@ sub fgrp_fetch_all {
        push(@fetch, "-j$j") if $j;
        while (my ($osdir, $fgrpv) = each %$todo) {
                my $f = "$osdir/config";
+               return if !keep_going($self);
 
                # clobber group from previous run atomically
                my $cmd = ['git', "--git-dir=$osdir", qw(config -f),