vendor containers/image, OCI/image-spec

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca
2016-09-08 13:23:41 +02:00
parent fc0c5be08d
commit 81d67eab92
17 changed files with 95 additions and 60 deletions

View File

@@ -114,7 +114,11 @@ func Image(ctx *types.SystemContext, policyContext *signature.PolicyContext, des
return fmt.Errorf("Error reading signatures: %v", err)
}
sigs = s
// FIXME: Fail early if we can detect that RemoveSignatures should be used.
}
if len(sigs) != 0 {
if err := dest.SupportsSignatures(); err != nil {
return fmt.Errorf("Can not copy signatures: %v", err)
}
}
blobDigests, err := src.BlobDigests()