summaryrefslogtreecommitdiff
path: root/tools/warn/cpp_warn_patterns.py
diff options
context:
space:
mode:
author Felix <google@ix5.org> 2019-05-26 12:09:50 +0200
committer Felix <google@ix5.org> 2019-05-29 22:24:05 +0200
commit8453f02c652e1ec0467648064393b61c9b424d68 (patch)
tree4cf0d9a86d9fd47bd42998d000e144d6cf8e8ddb /tools/warn/cpp_warn_patterns.py
parentcd56c0df95f2b4b275ad3c876a848cd2ce90a6d8 (diff)
fs_config: Fix cases without vendor/oem partition
If the device has neither an OEM nor a vendor partiton, $PRIVATE_PARTITION_LIST will be empty, causing the fsconfig tool to fail because the "--all-partitions" argument will be empty. Quote the comma-substituted "$(PRIVATE_PARTITION_LIST)" - which may be empty - to appease argparse, which will then populate "_all_partitions" with an empty "str" object. Checking _all_partitions against None is superfluous since either argparse will catch the empty argument and fail early, or the argument will be a string, in which case it will not be None. Signed-off-by: Felix <google@ix5.org> Change-Id: I236e30445b303b4945467b5dc4387d54b5d984f9
Diffstat (limited to 'tools/warn/cpp_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions