Detect if images are available if we don't have to generate a Package

While building, if we aren't doing a clean build, we scan now to see if
images are available and we skip, in case we don't find a metadata
already.
This commit is contained in:
Ettore Di Giacinto
2020-12-14 18:32:32 +01:00
parent 6a86bf3f04
commit ef034d87b0
9 changed files with 309 additions and 15 deletions

View File

@@ -97,6 +97,10 @@ func (*SimpleImg) CopyImage(src, dst string) error {
return nil
}
func (*SimpleImg) ImageAvailable(imagename string) bool {
return imageAvailable(imagename)
}
func (*SimpleImg) ImageExists(imagename string) bool {
// NOOP: not implemented
// TODO: Since img doesn't have an inspect command,