Have upload_prebuilts respect the debug flag.

Chrome PFQ right now is uploading prebuilts which wasn't meant to happen :(

Change-Id: I502a0621a6c9f655e5a3f890dd79e00652925902

BUG=chromium-os:8693
TEST=Ran cbuildbot with --debug

Review URL: http://codereview.chromium.org/5595004
This commit is contained in:
Chris Sosa 2010-12-03 16:28:33 -08:00
parent 46b5e1d286
commit 1a4a9665d4

View File

@ -701,8 +701,9 @@ def main():
if buildconfig['master']: if buildconfig['master']:
# Master bot needs to check if the other slaves completed. # Master bot needs to check if the other slaves completed.
if cbuildbot_comm.HaveSlavesCompleted(config): if cbuildbot_comm.HaveSlavesCompleted(config):
_UploadPrebuilts(buildroot, board, buildconfig['rev_overlays'], if not options.debug:
[new_binhost]) _UploadPrebuilts(buildroot, board, buildconfig['rev_overlays'],
[new_binhost])
_UprevPush(buildroot, tracking_branch, buildconfig['board'], _UprevPush(buildroot, tracking_branch, buildconfig['board'],
push_overlays, options.debug) push_overlays, options.debug)
else: else: