Change BuildFile in order to use TarSum instead of custom checksum

Upstream-commit: 894d4a23fba1a67087ae5bbe9c50c56e6dc09289
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-12-26 16:16:26 -08:00
parent ad15888099
commit e485023364
2 changed files with 45 additions and 89 deletions
+2
View File
@@ -10,6 +10,7 @@ import (
"io"
"sort"
"strconv"
"strings"
)
type TarSum struct {
@@ -92,6 +93,7 @@ func (ts *TarSum) Read(buf []byte) (int, error) {
}
return n, err
}
ts.currentFile = strings.TrimSuffix(strings.TrimPrefix(currentHeader.Name, "./"), "/")
if err := ts.encodeHeader(currentHeader); err != nil {
return 0, err
}