Skip to content

Commit

Permalink
productcompose: support reworked schema
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 30, 2023
1 parent 546ae2f commit 3dedab5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Build/ProductCompose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ sub parse {
# Do we need source or debug packages?
my $bo = $data->{'build_options'};
if ($bo) {
$ret->{'sourcemedium'} = 1 if $bo->{'source'};
$ret->{'debugmedium'} = 1 if $bo->{'debug'};
@architectures = @{$bo->{'architectures'} || []};
if ($bo->{'flavors'}) {
for my $flavor (@{$bo->{'flavors'}}) {
my $f = $flavor->{$cf->{'buildflavor'}};
next unless $f;
@architectures = $f->{'architectures'};
}
}
$ret->{'sourcemedium'} = 1 if $data->{'source'};
$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;
@architectures = $f->{'architectures'};
}
$ret->{'exclarch'} = \@architectures if @architectures;
}
$ret->{'exclarch'} = \@architectures if @architectures;

my @unpack_packdeps = filter_packages(@{$data->{'unpack_packages'}});
my @packdeps = filter_packages(@{$data->{'packages'}});
Expand Down

0 comments on commit 3dedab5

Please sign in to comment.