From d71cbf23cc7b180fb37a8c94115732f26260f874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 29 Jan 2025 19:22:51 +0100 Subject: [PATCH] productcompose: avoid warnings in log files when requested data key is not available --- Build/ProductCompose.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Build/ProductCompose.pm b/Build/ProductCompose.pm index 86c1f5c0..1e1581e8 100644 --- a/Build/ProductCompose.pm +++ b/Build/ProductCompose.pm @@ -183,9 +183,10 @@ sub show { my $value = $d->{ $field }; if (ref $value eq 'ARRAY') { print "$_\n" for @$value; - } - else { + } elsif ($value) { print "$value\n"; + } else { + print "\n"; } }