mirror of
https://github.com/containers/podman.git
synced 2025-11-01 10:45:52 +08:00
Update vendor of containers/buildah
Changes since 2022-05-31: - add --omit-history option (buildah PR 4028) Signed-off-by: Ed Santiago <santiago@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
23
vendor/github.com/containers/common/libimage/pull.go
generated
vendored
23
vendor/github.com/containers/common/libimage/pull.go
generated
vendored
@ -161,11 +161,30 @@ func (r *Runtime) Pull(ctx context.Context, name string, pullPolicy config.PullP
|
||||
|
||||
localImages := []*Image{}
|
||||
for _, name := range pulledImages {
|
||||
local, _, err := r.LookupImage(name, nil)
|
||||
image, _, err := r.LookupImage(name, nil)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "error locating pulled image %q name in containers storage", name)
|
||||
}
|
||||
localImages = append(localImages, local)
|
||||
|
||||
// Note that we can ignore the 2nd return value here. Some
|
||||
// images may ship with "wrong" platform, but we already warn
|
||||
// about it. Throwing an error is not (yet) the plan.
|
||||
matchError, _, err := image.matchesPlatform(ctx, options.Architecture, options.OS, options.Variant)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("checking platform of image %s: %w", name, err)
|
||||
}
|
||||
|
||||
// If the image does not match the expected/requested platform,
|
||||
// make sure to leave some breadcrumbs for the user.
|
||||
if matchError != nil {
|
||||
if options.Writer == nil {
|
||||
logrus.Warnf("%v", matchError)
|
||||
} else {
|
||||
fmt.Fprintf(options.Writer, "WARNING: %v\n", matchError)
|
||||
}
|
||||
}
|
||||
|
||||
localImages = append(localImages, image)
|
||||
}
|
||||
|
||||
return localImages, pullError
|
||||
|
||||
Reference in New Issue
Block a user