mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
commit: use libimage code to parse changes
This code is duplicated in podman and c/common, we should only use one version. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -12,7 +12,6 @@ import (
|
||||
"github.com/containers/image/v5/types"
|
||||
"github.com/containers/podman/v4/libpod/define"
|
||||
"github.com/containers/podman/v4/libpod/events"
|
||||
libpodutil "github.com/containers/podman/v4/pkg/util"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
@ -148,7 +147,7 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
|
||||
importBuilder.SetWorkDir(c.config.Spec.Process.Cwd)
|
||||
|
||||
// Process user changes
|
||||
newImageConfig, err := libpodutil.GetImageConfig(options.Changes)
|
||||
newImageConfig, err := libimage.ImageConfigFromChanges(options.Changes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user