Skip to content

Commit

Permalink
Read signatures from UnparsedImage instead of ImageSource directly
Browse files Browse the repository at this point in the history
This should not make a difference right now, because nothing else
uses the UnparsedImage, but it allows caching _in principle_
and it makes the code more similar to the copyOneImage version,
which we'll benefit from next.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jul 20, 2022
1 parent 81eae1e commit 1ac2547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy/copy.go
Expand Up @@ -411,7 +411,7 @@ func (c *copier) copyMultipleImages(ctx context.Context, policyContext *signatur
sigs = []internalsig.Signature{}
} else {
c.Printf("Getting image list signatures\n")
s, err := c.rawSource.GetSignaturesWithFormat(ctx, nil)
s, err := unparsedToplevel.UntrustedSignatures(ctx)
if err != nil {
return nil, fmt.Errorf("reading signatures: %w", err)
}
Expand Down

0 comments on commit 1ac2547

Please sign in to comment.