From be24be070d57381c622be2c6c874140c34dbc57c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 1 Dec 2023 13:56:51 +0100 Subject: [PATCH] productcomposer: fix empty main package for flavors again Do not report a parse error of lacking flavor --- Build/ProductCompose.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/ProductCompose.pm b/Build/ProductCompose.pm index 31d812867..9034a6216 100644 --- a/Build/ProductCompose.pm +++ b/Build/ProductCompose.pm @@ -89,7 +89,7 @@ sub parse { $ret->{'debugmedium'} = 1 if $data->{'debug'}; @architectures = @{$data->{'architectures'} || []}; if ($data->{'flavors'}) { - if ($data->{'flavors'}) { + if ($cf->{'buildflavor'}) { my $f = $data->{'flavors'}->{$cf->{'buildflavor'}}; return { error => "Flavor '$cf->{'buildflavor'}' not found" } unless defined $f; @architectures = @{$f->{'architectures'} || []} if $f->{'architectures'};