summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-08-27 13:40:50 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-08-27 13:40:50 +0200
commit0ee9a3129b312e0a40b2e78e97ee356205495333 (patch)
treee6d77666fb0f3535924f8460a07dd35bfb93a096 /vendor
parent36cf6f572a360af91bf261936b6ed6849f355478 (diff)
downloadpodman-0ee9a3129b312e0a40b2e78e97ee356205495333.tar.gz
podman-0ee9a3129b312e0a40b2e78e97ee356205495333.tar.bz2
podman-0ee9a3129b312e0a40b2e78e97ee356205495333.zip
podman rmi: emit untag events
Emit untag events for each tag when removing an image. Fixes: #15485 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/containers/common/libimage/image.go4
-rw-r--r--vendor/modules.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/containers/common/libimage/image.go b/vendor/github.com/containers/common/libimage/image.go
index d1548eb23..3cc843ed3 100644
--- a/vendor/github.com/containers/common/libimage/image.go
+++ b/vendor/github.com/containers/common/libimage/image.go
@@ -475,7 +475,11 @@ func (i *Image) removeRecursive(ctx context.Context, rmMap map[string]*RemoveIma
}
return processedIDs, err
}
+
report.Untagged = append(report.Untagged, i.Names()...)
+ for _, name := range i.Names() {
+ i.runtime.writeEvent(&Event{ID: i.ID(), Name: name, Time: time.Now(), Type: EventTypeImageUntag})
+ }
if !hasChildren {
report.Removed = true
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 20f781318..84003a3b1 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -114,7 +114,7 @@ github.com/containers/buildah/pkg/rusage
github.com/containers/buildah/pkg/sshagent
github.com/containers/buildah/pkg/util
github.com/containers/buildah/util
-# github.com/containers/common v0.49.2-0.20220823130605-72a7da3358ac
+# github.com/containers/common v0.49.2-0.20220826180622-c2dcb4e70340
## explicit
github.com/containers/common/libimage
github.com/containers/common/libimage/define