From ea30a1fcab1823062e5375f2670dadc80c712f74 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 1 Feb 2020 09:12:14 +0000 Subject: solver: join multiple URLs with "||" It seems to make sense to the target audience that any of the URLs displayed could work. --- lib/PublicInbox/SolverGit.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm index 06b4cdc4..bf806f65 100644 --- a/lib/PublicInbox/SolverGit.pm +++ b/lib/PublicInbox/SolverGit.pm @@ -530,7 +530,8 @@ sub resolve_patch ($$) { if (my $existing = solve_existing($self, $want)) { my ($found_git, undef, $type, undef) = @$existing; dbg($self, "found $cur_want in " . - join("\n", $found_git->pub_urls($self->{psgi_env}))); + join(" ||\n\t", + $found_git->pub_urls($self->{psgi_env}))); if ($cur_want eq $self->{oid_want} || $type ne 'blob') { eval { done($self, $existing) }; @@ -548,7 +549,7 @@ sub resolve_patch ($$) { unshift @{$self->{patches}}, @$diffs; dbg($self, "found $cur_want in ". - join("\n\t", map { di_url($self, $_) } @$diffs)); + join(" ||\n\t", map { di_url($self, $_) } @$diffs)); # good, we can find a path to the oid we $want, now # lets see if we need to apply more patches: -- cgit v1.2.3-24-ge0c7