From: Nicolas Thill Date: Fri, 22 Aug 2008 04:18:35 +0000 (+0000) Subject: don't display the "Image configuration" menu entry when there's nothing to pre-config... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bb4b7d7617a160db16ed16a54efbeef1599198e;p=librecmc%2Flibrecmc.git don't display the "Image configuration" menu entry when there's nothing to pre-configure (when using the SDK for example) SVN-Revision: 12366 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index d920f59fca..ce80924978 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -472,7 +472,7 @@ sub print_package_config_category($) { sub gen_package_config() { parse_package_metadata($ARGV[0]) or exit 1; - print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n"; + print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n" if %preconfig; foreach my $preconfig (keys %preconfig) { foreach my $cfg (keys %{$preconfig{$preconfig}}) { my $conf = $preconfig{$preconfig}->{$cfg}->{id};