|
100 | 100 | return $output;
|
101 | 101 | }
|
102 | 102 |
|
103 |
| -sub get_manifest_p ($org, $repo, $ref, $tries = 3) { |
| 103 | +sub get_manifest_p ($org, $repo, $ref, $tries = 10) { |
104 | 104 | --$tries;
|
105 | 105 | my $lastTry = $tries < 1;
|
106 | 106 |
|
@@ -143,7 +143,7 @@ ($org, $repo, $ref, $tries = 3)
|
143 | 143 | });
|
144 | 144 | }
|
145 | 145 |
|
146 |
| -sub get_blob_p ($org, $repo, $ref, $tries = 3) { |
| 146 | +sub get_blob_p ($org, $repo, $ref, $tries = 10) { |
147 | 147 | die "unexpected blob reference for '$org/$repo': '$ref'" unless $ref =~ m!^sha256:!;
|
148 | 148 |
|
149 | 149 | --$tries;
|
@@ -361,11 +361,13 @@ ($method, $repos, $url, $contentType = undef, $payload = undef, $tries = 10)
|
361 | 361 | ? ( "$repo:$tag" )
|
362 | 362 | : ( List::Util::uniq sort split /\n/, bashbrew('list', $repo) )
|
363 | 363 | );
|
| 364 | + return Mojo::Promise->resolve unless @tags; # no tags, nothing to do! (opensuse, etc) |
364 | 365 |
|
365 | 366 | return Mojo::Promise->map({ concurrency => 1 }, sub ($repoTag) {
|
366 | 367 | my (undef, $repo, $tag) = split_image_name($repoTag);
|
367 | 368 |
|
368 | 369 | my @arches = List::Util::uniq sort split /\n/, bashbrew('cat', '--format', '{{ range .Entries }}{{ range .Architectures }}{{ . }}={{ archNamespace . }}{{ "\n" }}{{ end }}{{ end }}', "$repo:$tag");
|
| 370 | + return Mojo::Promise->resolve unless @arches; # no arches, nothing to do! |
369 | 371 |
|
370 | 372 | return Mojo::Promise->map({ concurrency => 1 }, sub ($archData) {
|
371 | 373 | my ($arch, $archNamespace) = split /=/, $archData;
|
|
0 commit comments