From f6bd18c015af90aa2d8105050236fc7e212da2b7 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 24 Jan 2024 17:16:14 +0100 Subject: [PATCH] ProductCompose: Do not warn about an undef flavor --- Build/ProductCompose.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/ProductCompose.pm b/Build/ProductCompose.pm index 6417149a5..1a53db737 100644 --- a/Build/ProductCompose.pm +++ b/Build/ProductCompose.pm @@ -103,7 +103,7 @@ sub get_pkgset_compat { my @r; for my $s (@{$pkgs || []}) { if (ref($s) eq 'HASH') { - next if $s->{'flavors'} && !grep {$_ eq $flavor} @{$s->{'flavors'}}; + next if $s->{'flavors'} && !grep {$flavor && $_ eq $flavor} @{$s->{'flavors'}}; next if $s->{'architectures'} && !grep {$_ eq $arch} @{$s->{'architectures'}}; push @r, @{$s->{'packages'} || []}; } else {