Merge pull request #514 from giuseppe/vndr-c-image

vendor: update containers/image
This commit is contained in:
Miloslav Trmač 2018-05-30 20:50:35 +02:00 committed by GitHub
commit 0144aa8dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ import (
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"runtime"
"strconv" "strconv"
"strings" "strings"
"syscall" "syscall"
@ -394,6 +395,9 @@ func (d *ostreeImageDestination) PutSignatures(ctx context.Context, signatures [
} }
func (d *ostreeImageDestination) Commit(ctx context.Context) error { func (d *ostreeImageDestination) Commit(ctx context.Context) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
repo, err := otbuiltin.OpenRepo(d.ref.repo) repo, err := otbuiltin.OpenRepo(d.ref.repo)
if err != nil { if err != nil {
return err return err