meson: don't pass empty --exclude when building all plugins

''.split(',') returns [''] and not [].
This commit is contained in:
Guillaume Desmottes 2020-01-03 09:41:05 +05:30
parent e158f4ef88
commit 46dda60db9

View file

@ -32,9 +32,10 @@ cargo_cmd = ['cargo', 'build', '--manifest-path',
if target == 'release':
cargo_cmd.append('--release')
for e in exclude.split(','):
cargo_cmd.append('--exclude')
cargo_cmd.append(e)
if len(exclude) > 0:
for e in exclude.split(','):
cargo_cmd.append('--exclude')
cargo_cmd.append(e)
try:
subprocess.run(cargo_cmd, env=env, check=True)