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 1, 2022
1 parent 44e127c commit 18bac93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy/copy.go
Expand Up @@ -401,7 +401,7 @@ func (c *copier) copyMultipleImages(ctx context.Context, policyContext *signatur
sigs = [][]byte{}
} else {
c.Printf("Getting image list signatures\n")
s, err := c.rawSource.GetSignatures(ctx, nil)
s, err := unparsedToplevel.Signatures(ctx)
if err != nil {
return nil, perrors.Wrap(err, "reading signatures")
}
Expand Down

0 comments on commit 18bac93

Please sign in to comment.