diff options
author | Daniel Wyatt <[email protected]> | 2018-10-14 10:08:28 -0400 |
---|---|---|
committer | Daniel Wyatt <[email protected]> | 2018-10-14 10:34:33 -0400 |
commit | 8cddb392fccbd74fb18258a06ee5c6de4f9da259 (patch) | |
tree | 13cd999266bb3f4fec7cb7be1b659809fe7c9121 /configure.py | |
parent | 9249da3c4e87bfbdbe88882e65ae01d1f90e31eb (diff) |
Allow configure.py parse_multiple_enable to accept an empty list and extra commas.
Examples:
./configure.py --enable-modules=
./configure.py --enable-modules=zlib,openssl,
./configure.py --enable-modules=zlib,,bzip2,
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 31c6beeab..c5a3fda32 100755 --- a/configure.py +++ b/configure.py @@ -619,7 +619,8 @@ def process_command_line(args): # pylint: disable=too-many-locals,too-many-state def parse_multiple_enable(modules): if modules is None: return [] - return sorted(set(flatten([s.split(',') for s in modules]))) + + return sorted({m for m in flatten([s.split(',') for s in modules]) if m != ''}) options.enabled_modules = parse_multiple_enable(options.enabled_modules) options.disabled_modules = parse_multiple_enable(options.disabled_modules) |