[Debian-live-changes] r2440 - in dists/trunk/live-helper: docs functions
lamby-guest at alioth.debian.org
lamby-guest at alioth.debian.org
Mon Jul 9 15:42:25 UTC 2007
Author: lamby-guest
Date: 2007-07-09 15:42:25 +0000 (Mon, 09 Jul 2007)
New Revision: 2440
Modified:
dists/trunk/live-helper/docs/ChangeLog
dists/trunk/live-helper/functions/chroot.sh
dists/trunk/live-helper/functions/defaults.sh
Log:
Alter handling LH_DEBCONF_NOWARNINGS so that it also accepts "enabled/disabled" for consistency.
Modified: dists/trunk/live-helper/docs/ChangeLog
===================================================================
--- dists/trunk/live-helper/docs/ChangeLog 2007-07-09 11:46:00 UTC (rev 2439)
+++ dists/trunk/live-helper/docs/ChangeLog 2007-07-09 15:42:25 UTC (rev 2440)
@@ -1,3 +1,8 @@
+2007-07-09 Chris Lamb <chris at chris-lamb.co.uk>
+ * functions/chroot.sh, functions/defaults.sh:
+ - Altered LH_DEBCONF_NOWARNINGS so that it accepts "enabled/disabled"
+ as well as "yes/no" for consistency.
+
2007-07-09 Daniel Baumann <daniel at debian.org>
* functions/architecture.sh, helpers/lh_binary_debian-installer,
Modified: dists/trunk/live-helper/functions/chroot.sh
===================================================================
--- dists/trunk/live-helper/functions/chroot.sh 2007-07-09 11:46:00 UTC (rev 2439)
+++ dists/trunk/live-helper/functions/chroot.sh 2007-07-09 15:42:25 UTC (rev 2440)
@@ -13,9 +13,22 @@
{
COMMANDS="${1}"
+ case "${LH_DEBCONF_NOWARNINGS}" in
+ "disabled")
+ DEBCONF_NOWARNINGS="no"
+ ;;
+ "no")
+ DEBCONF_NOWARNINGS="no"
+ ;;
+ *)
+ DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS}"
+ ;;
+ esac
+
+ echo
# Executing commands in chroot
Echo_debug "Executing: ${COMMANDS}"
- ${LH_ROOT_COMMAND} chroot chroot /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" ftp_proxy="${LH_APT_FTPPROXY}" http_proxy="${LH_APT_HTTPPROXY}" DEBIAN_FRONTEND="${LH_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LH_DEBCONF_PRIORITY}" DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS}" ${COMMANDS}
+ ${LH_ROOT_COMMAND} chroot chroot /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" ftp_proxy="${LH_APT_FTPPROXY}" http_proxy="${LH_APT_HTTPPROXY}" DEBIAN_FRONTEND="${LH_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LH_DEBCONF_PRIORITY}" DEBCONF_NOWARNINGS="${DEBCONF_NOWARNINGS}" ${COMMANDS}
return "${?}"
}
Modified: dists/trunk/live-helper/functions/defaults.sh
===================================================================
--- dists/trunk/live-helper/functions/defaults.sh 2007-07-09 11:46:00 UTC (rev 2439)
+++ dists/trunk/live-helper/functions/defaults.sh 2007-07-09 15:42:25 UTC (rev 2440)
@@ -128,7 +128,7 @@
# Setting debconf frontend
LH_DEBCONF_FRONTEND="${LH_DEBCONF_FRONTEND:-noninteractive}"
- LH_DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS:-yes}"
+ LH_DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS:-enabled}"
LH_DEBCONF_PRIORITY="${LH_DEBCONF_PRIORITY:-critical}"
# Setting genisoimage
More information about the Debian-live-changes
mailing list