mirror of
https://github.com/containers/skopeo.git
synced 2025-09-17 07:19:37 +00:00
Update c/image after https://github.com/containers/image/pull/1787
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
4
vendor/github.com/sylabs/sif/v2/pkg/sif/create.go
generated
vendored
4
vendor/github.com/sylabs/sif/v2/pkg/sif/create.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2018-2021, Sylabs Inc. All rights reserved.
|
||||
// Copyright (c) 2018-2022, Sylabs Inc. All rights reserved.
|
||||
// Copyright (c) 2017, SingularityWare, LLC. All rights reserved.
|
||||
// Copyright (c) 2017, Yannick Cote <yhcote@gmail.com> All rights reserved.
|
||||
// This software is licensed under a 3-clause BSD license. Please consult the
|
||||
@@ -104,7 +104,7 @@ func (f *FileImage) writeDescriptors() error {
|
||||
return binary.Write(f.rw, binary.LittleEndian, f.rds)
|
||||
}
|
||||
|
||||
// writeHeader writes the the global header in f to backing storage.
|
||||
// writeHeader writes the global header in f to backing storage.
|
||||
func (f *FileImage) writeHeader() error {
|
||||
if _, err := f.rw.Seek(0, io.SeekStart); err != nil {
|
||||
return err
|
||||
|
5
vendor/github.com/sylabs/sif/v2/pkg/sif/descriptor.go
generated
vendored
5
vendor/github.com/sylabs/sif/v2/pkg/sif/descriptor.go
generated
vendored
@@ -214,6 +214,11 @@ func (d Descriptor) SignatureMetadata() (ht crypto.Hash, fp []byte, err error) {
|
||||
}
|
||||
|
||||
fp = make([]byte, 20)
|
||||
|
||||
if bytes.Equal(s.Entity[:len(fp)], fp) {
|
||||
return ht, nil, nil // Fingerprint not present.
|
||||
}
|
||||
|
||||
copy(fp, s.Entity[:])
|
||||
|
||||
return ht, fp, nil
|
||||
|
Reference in New Issue
Block a user