mirror of
https://github.com/containers/podman.git
synced 2025-11-02 23:39:52 +08:00
vendor: bump c/common to v0.56.1-0.20230919073449-d1d9d38d8282
Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
22
vendor/github.com/containers/common/libimage/layer_tree.go
generated
vendored
22
vendor/github.com/containers/common/libimage/layer_tree.go
generated
vendored
@ -199,6 +199,17 @@ func (t *layerTree) children(ctx context.Context, parent *Image, all bool) ([]*I
|
||||
if parent.TopLayer() == "" {
|
||||
for i := range t.emptyImages {
|
||||
empty := t.emptyImages[i]
|
||||
isManifest, err := empty.IsManifestList(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if isManifest {
|
||||
// If this is a manifest list and is already
|
||||
// marked as empty then no instance can be
|
||||
// selected from this list therefore its
|
||||
// better to skip this.
|
||||
continue
|
||||
}
|
||||
isParent, err := checkParent(empty)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -289,6 +300,17 @@ func (t *layerTree) parent(ctx context.Context, child *Image) (*Image, error) {
|
||||
if childID == empty.ID() {
|
||||
continue
|
||||
}
|
||||
isManifest, err := empty.IsManifestList(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if isManifest {
|
||||
// If this is a manifest list and is already
|
||||
// marked as empty then no instance can be
|
||||
// selected from this list therefore its
|
||||
// better to skip this.
|
||||
continue
|
||||
}
|
||||
emptyOCI, err := t.toOCI(ctx, empty)
|
||||
if err != nil {
|
||||
if ErrorIsImageUnknown(err) {
|
||||
|
||||
Reference in New Issue
Block a user