From 476d4c447e4635b3a762098d333869b66ebd8dd8 Mon Sep 17 00:00:00 2001
From: Chris Lamb <lamby@debian.org>
Date: Sat, 9 May 2009 22:36:30 +0100
Subject: Print a warning if you are using "stripped" or "minimal" but you have
 set LH_BINARY_INCICES="enabled" (Closes: #527974)

This is mostly for people new to 1.0.4 with old configs.
---
 functions/defaults.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/functions/defaults.sh b/functions/defaults.sh
index 8ad360f..c87811c 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -1057,4 +1057,13 @@ Check_defaults ()
 	then
 		Echo_warning "You have specified a value of LH_ISO_VOLUME that is too long; the maximum length is 32 characters."
 	fi
+
+	if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b"
+	then
+		if [ "${LH_BINARY_INDICES}" = "enabled" ]
+		then
+			Echo_warning "You have selected hook to minimise image size but you are still including package indices with your value of LH_BINARY_INDICES."
+		fi
+	fi
+
 }
-- 
cgit v1.0