Permalink
Browse files
Avoid an exception if the subportlist is empty
- Loading branch information
Showing
with
4 additions
and
1 deletion.
-
+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, |
|
|
|