Skip to content

Commit

Permalink
misc/makerelease: send file size when uploading
Browse files Browse the repository at this point in the history
Change-Id: I1a1ed1e23067268a2bac08fc4c99c594fb723837
Reviewed-on: https://go-review.googlesource.com/3050
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
adg committed Jan 20, 2015
1 parent 68b78b8 commit 5efcbba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misc/makerelease/makerelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ func (b *Build) Upload(version string, filename string) error {
OS: b.OS,
Arch: b.Arch,
Checksum: sum,
Size: len(file),
Kind: kind,
})
if err != nil {
Expand All @@ -760,6 +761,7 @@ type File struct {
Arch string
Version string
Checksum string `datastore:",noindex"`
Size int `datastore:",noindex"`
Kind string // "archive", "installer", "source"
}

Expand Down

0 comments on commit 5efcbba

Please sign in to comment.