mirror of
https://github.com/containers/podman.git
synced 2025-12-15 11:42:28 +08:00
update c/common
Update containers common to the latest HEAD. Some bug fixes in libimage forced us to have a clearer separation between ordinary images and manifest lists. Hence, when looking up manifest lists without recursing into any of their instances, we need to use `LookupManifestList()`. Also account for some other changes in c/common (e.g., the changed order in the security labels). Further vendor the latest HEAD from Buildah which is required to get the bud tests to pass. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/buildah/copier/copier.go
generated
vendored
8
vendor/github.com/containers/buildah/copier/copier.go
generated
vendored
@@ -1186,11 +1186,14 @@ func copierHandlerGet(bulkWriter io.Writer, req request, pm *fileutils.PatternMa
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
} else if os.IsNotExist(errors.Cause(err)) {
|
||||
logrus.Warningf("copier: file disappeared while reading: %q", path)
|
||||
return nil
|
||||
}
|
||||
return errors.Wrapf(err, "copier: get: error reading %q", path)
|
||||
}
|
||||
if info.Mode()&os.ModeType == os.ModeSocket {
|
||||
logrus.Warningf("buildah/copier: skipping socket %q", info.Name())
|
||||
logrus.Warningf("copier: skipping socket %q", info.Name())
|
||||
return nil
|
||||
}
|
||||
// compute the path of this item
|
||||
@@ -1241,6 +1244,9 @@ func copierHandlerGet(bulkWriter io.Writer, req request, pm *fileutils.PatternMa
|
||||
if err := copierHandlerGetOne(info, symlinkTarget, rel, path, options, tw, hardlinkChecker, idMappings); err != nil {
|
||||
if req.GetOptions.IgnoreUnreadable && errorIsPermission(err) {
|
||||
return ok
|
||||
} else if os.IsNotExist(errors.Cause(err)) {
|
||||
logrus.Warningf("copier: file disappeared while reading: %q", path)
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user