From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 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.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4B15A1F487 for ; Tue, 2 Jul 2024 23:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1719964609; bh=TLz/Dm6Eju18AThTG/nlvwNKkpvyJ3rZicVYzl3GGr8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=ewU+K1L6O1FgoE/kPIIdUQMqB8Egjo9YIJaqfCnjPh8+Q6qr2KNd1A+2u+RAcx47g O3XJNGnxdJHygGCN18TIEwara/t9bbIg4LpGZYH9jcEYDi06fpCp3TRK83PrlnQjJa FD1Iy1zffuIGqSn0Pfx29r3GnHVf+fK3EvxDT5kQ= Date: Tue, 2 Jul 2024 23:56:49 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/1] lei_mirror: show FS path for symlink conflicts Message-ID: <20240702235649.M115127@dcvr> References: <20240702213533.3941056-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240702213533.3941056-1-e@80x24.org> List-Id: Seeing the URI path component is confusing the problem needs to be dealt with on the local FS. --- lib/PublicInbox/LeiMirror.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 57b2d32b..fb0295da 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -794,7 +794,7 @@ sub update_ent { next if readlink($ln) eq $tgt; unlink($ln); } else { - push @{$self->{chg}->{badlink}}, $p; + push @{$self->{chg}->{badlink}}, $ln; next; } }