cmd/dist: fix detection of go1 version

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5924044
This commit is contained in:
Russ Cox 2012-03-27 00:17:35 -04:00
parent c748689277
commit 901ee5c151
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ setup(void)
}
// For release, make sure excluded things are excluded.
if(hasprefix(goversion, "release.") || hasprefix(goversion, "go.")) {
if(hasprefix(goversion, "release.") || hasprefix(goversion, "go")) {
for(i=0; i<nelem(unreleased); i++)
if(isdir(bpathf(&b, "%s/%s", goroot, unreleased[i])))
fatal("%s should not exist in release build", bstr(&b));