mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-15 15:37:15 +00:00
arm/generate_capsule_json_multiple: Fix --selected_components default behavior
When --selected_components is not specified, the script should include all components as documented in the help text. However, the current implementation skips all components when the parameter is empty, resulting in an error. Fix the filtering logic to only apply when --selected_components is explicitly provided with values. Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -93,7 +93,7 @@ def create_payloads(args: argparse.Namespace) -> List[dict]:
|
|||||||
for i in range(num_payloads):
|
for i in range(num_payloads):
|
||||||
|
|
||||||
# If filtering is enabled, skip if not in the allowed components list
|
# If filtering is enabled, skip if not in the allowed components list
|
||||||
if args.components[i] not in args.selected_components:
|
if args.selected_components and args.components[i] not in args.selected_components:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
|
|||||||
Reference in New Issue
Block a user