[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#448034: live-helper: support LH_BOOTSTRAP_FLAVOUR=minimal



Package: live-helper
Version: 1.0~a31-1
Severity: normal
Tags: patch
File: /usr/bin/lh_bootstrap_cdebootstrap

Maarten mentioned this here:
http://lists.alioth.debian.org/pipermail/debian-live-devel/2007-October/002492.html

It seems like it was meant to be supported but only used a heureustic
or partial implementation until now.

I wrote this patch while trying to work around sid's unsatisfied
depends from aptitude, but didn't manage to create an image yet.  This
patch might require with --apt apt.

--- /usr/bin/lh_bootstrap_cdebootstrap
+++ /tmp/tmp.QtQRIF7549/lh_bootstrap_cdebootstrap	2007-10-25 10:11:35.000000000 -0400
@@ -84,14 +84,13 @@
     CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --keyring=${LH_BOOTSTRAP_KEYRING}"
 fi
 
-case "${LH_PACKAGES_LISTS}" in
-	minimal|mini)
-		CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
-		;;
-	*)
-		CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
-		;;
-esac
+if expr "${LH_PACKAGES_LISTS}" : mini >/dev/null ||
+	[ ${LH_BOOTSTRAP_FLAVOUR} = minimal ]
+then
+	CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
+else
+	CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
+fi
 
 if [ "${LH_DEBUG}" = "enabled" ]
 then

-------------- next part --------------
--- /usr/bin/lh_bootstrap_cdebootstrap
+++ /tmp/tmp.QtQRIF7549/lh_bootstrap_cdebootstrap	2007-10-25 10:11:35.000000000 -0400
@@ -84,14 +84,13 @@
     CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --keyring=${LH_BOOTSTRAP_KEYRING}"
 fi
 
-case "${LH_PACKAGES_LISTS}" in
-	minimal|mini)
-		CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
-		;;
-	*)
-		CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
-		;;
-esac
+if expr "${LH_PACKAGES_LISTS}" : mini >/dev/null ||
+	[ ${LH_BOOTSTRAP_FLAVOUR} = minimal ]
+then
+	CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
+else
+	CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
+fi
 
 if [ "${LH_DEBUG}" = "enabled" ]
 then


Reply to: