mirror of https://github.com/containers/podman.git
Update for API change
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
d9b5c29b3f
commit
22b1f7f8cb
|
|
@ -9,6 +9,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"github.com/containers/image/pkg/blobinfocache"
|
||||||
"github.com/containers/image/storage"
|
"github.com/containers/image/storage"
|
||||||
"github.com/containers/image/types"
|
"github.com/containers/image/types"
|
||||||
sstorage "github.com/containers/storage"
|
sstorage "github.com/containers/storage"
|
||||||
|
|
@ -156,7 +157,7 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
defer img.Close()
|
defer img.Close()
|
||||||
layer, err := img.PutBlob(ctx, layerBuffer, layerInfo, false)
|
layer, err := img.PutBlob(ctx, layerBuffer, layerInfo, blobinfocache.NewMemoryCache(), false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("error preparing to write image: %v", err)
|
logrus.Errorf("error preparing to write image: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
@ -184,7 +185,7 @@ func main() {
|
||||||
Digest: digest.Canonical.FromBytes(cbytes),
|
Digest: digest.Canonical.FromBytes(cbytes),
|
||||||
Size: int64(len(cbytes)),
|
Size: int64(len(cbytes)),
|
||||||
}
|
}
|
||||||
configInfo, err = img.PutBlob(ctx, bytes.NewBuffer(cbytes), configInfo, false)
|
configInfo, err = img.PutBlob(ctx, bytes.NewBuffer(cbytes), configInfo, blobinfocache.NewMemoryCache(), false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("error saving configuration: %v", err)
|
logrus.Errorf("error saving configuration: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue