Skip to content

Commit

Permalink
productcompose: follow incompatible change of flavor definition
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 1, 2023
1 parent 5eac7a6 commit eb7dddb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Build/ProductCompose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ sub parse {
$ret->{'debugmedium'} = 1 if $data->{'debug'};
@architectures = @{$data->{'architectures'} || []};
if ($data->{'flavors'}) {
for my $flavor (@{$data->{'flavors'}}) {
my $f = $flavor->{$cf->{'buildflavor'}};
next unless $f;
if ($data->{'flavors'}) {
my $f = $data->{'flavors'}->{$cf->{'buildflavor'}};
return { error => "Flavor '$cf->{'buildflavor'}' not found" } unless defined $f;
@architectures = @{$f->{'architectures'} || []} if $f->{'architectures'};
}
if (@architectures) {
Expand Down

0 comments on commit eb7dddb

Please sign in to comment.