summaryrefslogtreecommitdiff
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-xscripts/metadata.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index f075525..041a250 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -75,7 +75,10 @@ sub parse_target_metadata() {
}
close FILE;
foreach my $target (@target) {
- next if @{$target->{subtargets}} > 0;
+ if (@{$target->{subtargets}} > 0) {
+ $target->{profiles} = [];
+ next;
+ }
@{$target->{profiles}} > 0 or $target->{profiles} = [
{
id => 'Default',