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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user