1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove use of pkg/integration in pkg/idtools

This remove a dependency on `go-check` (and more) when using
`pkg/idtools`. `pkg/integration` should never be called from any other
package then `integration`.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2016-11-08 17:21:02 +01:00
parent 189727581b
commit acf7ce1aa0
No known key found for this signature in database
GPG key ID: 083CC6FD6EB699A3
4 changed files with 38 additions and 31 deletions

View file

@ -11,7 +11,6 @@ import (
"strings"
"sync"
"github.com/docker/docker/pkg/integration/cmd"
"github.com/docker/docker/pkg/system"
"github.com/opencontainers/runc/libcontainer/user"
)
@ -187,7 +186,7 @@ func callGetent(args string) (io.Reader, error) {
}
out, err := execCmd(getentCmd, args)
if err != nil {
exitCode, errC := cmd.GetExitCode(err)
exitCode, errC := system.GetExitCode(err)
if errC != nil {
return nil, err
}