Skip to content
Permalink
Browse files

Avoid an exception if the subportlist is empty

  • Loading branch information
ryandesign committed Mar 8, 2018
1 parent 4d02d8c commit b35dbf34ccb48b47b2cb079a6ae5eb843201fedf
Showing with 4 additions and 1 deletion.
  1. +4 −1 buildbot/master.cfg
@@ -710,7 +710,10 @@ if 'mirror' in config['deploy']:

@util.renderer
def make_jobs_mirror_command(props):
return ['./mpbb/mpbb', '--prefix', jobs_mirror_prefix, 'mirror-distfiles', '--distfiles-dir', config['deploy']['mirror']['distfilesdir']] + props.getProperty('subportlist').split()
cmd = ['./mpbb/mpbb', '--prefix', jobs_mirror_prefix, 'mirror-distfiles', '--distfiles-dir', config['deploy']['mirror']['distfilesdir']]
if props.hasProperty('subportlist'):
cmd += props.getProperty('subportlist').split()
return cmd

jobs_mirror_factory.addStep(steps.ShellCommand(
command=make_jobs_mirror_command,

0 comments on commit b35dbf3

Please sign in to comment.
You can’t perform that action at this time.