]> Sergey Matveev's repositories - public-inbox.git/commitdiff
solver: join multiple URLs with "||"
authorEric Wong <e@yhbt.net>
Sat, 1 Feb 2020 09:12:14 +0000 (09:12 +0000)
committerEric Wong <e@yhbt.net>
Sat, 1 Feb 2020 21:09:55 +0000 (21:09 +0000)
It seems to make sense to the target audience that any of
the URLs displayed could work.

lib/PublicInbox/SolverGit.pm

index 06b4cdc40c220d6d849f9c05ef3b439cf0708471..bf806f65661a5d6637ef89401f34104d25c7ffde 100644 (file)
@@ -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: