From a12a4b71fbb63126045cdc89781c0b8e2cbddbb0 Mon Sep 17 00:00:00 2001
From: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sun, 17 Aug 2008 07:06:13 +0100
Subject: Support expanding wildcards in udeb excludes.

This was preventing "kernel-image-*" "exclude" entries from removing these
packages. This saves about 5 MiB of space in all.
---
 helpers/lh_binary_debian-installer | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/helpers/lh_binary_debian-installer b/helpers/lh_binary_debian-installer
index cd6f2f6..b352a2a 100755
--- a/helpers/lh_binary_debian-installer
+++ b/helpers/lh_binary_debian-installer
@@ -567,15 +567,15 @@ then
 		cat ../config/binary_debian-installer/udeb_exclude >> exclude
 	fi
 
-	for EXCLUDE in $(cat exclude)
+	while read EXCLUDE
 	do
 		if [ "${LH_DEBIAN_INSTALLER}" = "live" ] && [ "${EXCLUDE}" = "live-installer" ]
 		then
 			continue
 		fi
 
-		rm -f "${EXCLUDE}"_*.udeb
-	done
+		rm -f ${EXCLUDE}_*.udeb
+	done < exclude
 
 	# Enable live-installer
 	if [ "${LH_DEBIAN_INSTALLER}" = "live" ] && [ "${LH_DEBIAN_INSTALLER_DISTRIBUTION}" != "etch" ]
-- 
cgit v1.0