Commit c40c974d authored by Russ Cox's avatar Russ Cox

dashboard: look for key in $GOROOT before $HOME

TBR=agl1
CC=golang-dev
https://golang.org/cl/195076
parent b81065d0
...@@ -35,10 +35,13 @@ def main(args): ...@@ -35,10 +35,13 @@ def main(args):
buildport = int(os.environ['BUILDPORT']) buildport = int(os.environ['BUILDPORT'])
try: try:
buildkey = file('%s/.gobuildkey' % os.environ['HOME'], 'r').read().strip() buildkey = file('%s/.gobuildkey' % os.environ['GOROOT'], 'r').read().strip()
except IOError: except IOError:
print >>sys.stderr, "Need key in ~/.gobuildkey" try:
return buildkey = file('%s/.gobuildkey' % os.environ['HOME'], 'r').read().strip()
except IOError:
print >>sys.stderr, "Need key in $GOROOT/.gobuildkey or ~/.gobuildkey"
return
if args[1] == 'init': if args[1] == 'init':
return doInit(args) return doInit(args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment