From: Andrew Gerrand Date: Fri, 15 Apr 2011 01:56:56 +0000 (+1000) Subject: gobuilder: permit builders of the form goos-goarch-foo X-Git-Tag: weekly.2011-04-27~150 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9fba2a17c2daa877ba3fc0df24ac531c842ce632;p=gostls13.git gobuilder: permit builders of the form goos-goarch-foo R=dfc CC=golang-dev https://golang.org/cl/4416044 --- diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go index 735717e28d..25cc5d3c2c 100644 --- a/misc/dashboard/builder/main.go +++ b/misc/dashboard/builder/main.go @@ -185,7 +185,7 @@ func NewBuilder(builder string) (*Builder, os.Error) { // get goos/goarch from builder string s := strings.Split(builder, "-", 3) - if len(s) == 2 { + if len(s) >= 2 { b.goos, b.goarch = s[0], s[1] } else { return nil, fmt.Errorf("unsupported builder form: %s", builder)