From: Eric Wong Date: Sat, 1 Feb 2020 09:12:14 +0000 (+0000) Subject: solver: join multiple URLs with "||" X-Git-Tag: v1.3.0~34 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=ea30a1fcab1823062e5375f2670dadc80c712f74 solver: join multiple URLs with "||" It seems to make sense to the target audience that any of the URLs displayed could work. --- 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: