Merge pull request #29497 from yongtang/29486-docker-build-tmp-file

Clean up tmp files for interrupted `docker build`
(cherry picked from commit 6138a02c87)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2016-12-18 23:59:00 +01:00 committed by Sebastiaan van Stijn
parent 7e11df6273
commit 1c47c89d76
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -104,7 +104,8 @@ func MakeTarSumContext(tarStream io.Reader) (ModifiableContext, error) {
return nil, err
}
if err := chrootarchive.Untar(sum, root, nil); err != nil {
err = chrootarchive.Untar(sum, root, nil)
if err != nil {
return nil, err
}