]> Cypherpunks repositories - gostls13.git/commitdiff
misc/makerelease: send file size when uploading
authorAndrew Gerrand <adg@golang.org>
Tue, 20 Jan 2015 04:03:16 +0000 (15:03 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 20 Jan 2015 04:09:23 +0000 (04:09 +0000)
Change-Id: I1a1ed1e23067268a2bac08fc4c99c594fb723837
Reviewed-on: https://go-review.googlesource.com/3050
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/makerelease/makerelease.go

index 4b6e866b4416b7623c53347cc8a1c9d2cc8e1a69..054cf6f7885582ff0f90d51129f7396cccc28090 100644 (file)
@@ -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 {
@@ -760,6 +761,7 @@ type File struct {
        Arch     string
        Version  string
        Checksum string `datastore:",noindex"`
+       Size     int    `datastore:",noindex"`
        Kind     string // "archive", "installer", "source"
 }