Skip to content

Commit

Permalink
productcomposer: fix empty main package for flavors again
Browse files Browse the repository at this point in the history
Do not report a parse error of lacking flavor
  • Loading branch information
adrianschroeter committed Dec 1, 2023
1 parent 58d3099 commit be24be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build/ProductCompose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
Expand Down

0 comments on commit be24be0

Please sign in to comment.