1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 15:45:08 +01:00

Fix auto-update digest comparison

Since images can have multiple digests, it is better
to compare the image ID as that will definitely change
on an update and each image can only have one ID.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
Urvashi Mohnani
2024-01-25 11:09:44 -05:00
parent 90867d987e
commit 848078c938

View File

@@ -316,7 +316,7 @@ func (t *task) localUpdateAvailable() (bool, error) {
if err != nil {
return false, err
}
return localImg.Digest().String() != t.image.Digest().String(), nil
return localImg.ID() != t.image.ID(), nil
}
// rollbackImage rolls back the task's image to the previous version before the update.