~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to misc/dashboard/builder/http.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        return
113
113
}
114
114
 
115
 
// updatePackage sends package build results and info to the dashboard
116
 
func (b *Builder) updatePackage(pkg string, state bool, buildLog, info string, hash string) os.Error {
 
115
// updatePackage sends package build results and info dashboard
 
116
func (b *Builder) updatePackage(pkg string, ok bool, buildLog, info string) os.Error {
117
117
        return dash("POST", "package", nil, param{
118
118
                "builder": b.name,
119
119
                "key":     b.key,
120
120
                "path":    pkg,
121
 
                "state":   strconv.Btoa(state),
 
121
                "ok":      strconv.Btoa(ok),
122
122
                "log":     buildLog,
123
123
                "info":    info,
124
 
                "go_rev":  hash[:12],
125
124
        })
126
125
}
127
126