From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A4493203D4 for ; Mon, 28 Nov 2022 05:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669613572; bh=TvDyvj5yPEQZ3bOeVECbGZC8BN1UfJbR/kF/q3fKnok=; h=From:To:Subject:Date:In-Reply-To:References:From; b=1ld64B9iSCfktJCmLaXSHTxRw4JwFgLV8T0fdMHhkruIxA2Tm8dMgCTfR3tDP1xiV MIu5CBpT++Yl+5ZijrkGIv5amiOWrOJhqXuf0BOeJejoQiYvx+c+q/zItmRR35Tl15 ODj9HeEMHrKZAIE4PBBE0/qtd+PwCKXm9KHLrlbw= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 93/95] lei_mirror: break out of fgrp fetch iteration early Date: Mon, 28 Nov 2022 05:32:30 +0000 Message-Id: <20221128053232.291618-94-e@80x24.org> In-Reply-To: <20221128053232.291618-1-e@80x24.org> References: <20221128053232.291618-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Don't queue up more work if we already have a failure somewhere. --- lib/PublicInbox/LeiMirror.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 04e54955..0508c9a8 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -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),