forked from containers/common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 97961a6 took a first stab at making operating on the layer tree more resilient by detecting unknown-image errors. Testing in containers/podman/pull/18980 revealed that we also need to detect unknown-layer and -size errors as well. Move the errors checks into a convenience function and update the relevant call sites to facilitate future changes. Export the function since Podman needs the very same checks when operating on images, for instance, when looking up image labels. Signed-off-by: Valentin Rothberg <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters