chiark / gitweb /
makebs: fix config crash
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Jul 2016 09:20:17 +0000 (11:20 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Jul 2016 09:20:17 +0000 (11:20 +0200)
commit957f01f1d664f8d55f6330464a8ef8bcf63dbdc4
tree25472ac80eab0092d9d476b3b8139d6f4c702378
parent7b36ffa2a61232f1804d7a686e46bc6e97c38fc2
makebs: fix config crash

Without this, running makebuildserver from a clean master results in the
following:

 $ ./makebuildserver
Traceback (most recent call last):
  File "./makebuildserver", line 74, in <module>
    del(config['__builtins__'])  # added by compile/exec
KeyError: '__builtins__'

This is because a clean checkout has no config, thus exec is never
actually ran.
makebuildserver