svn commit: r278711 - projects/release-install-debug/usr.sbin/bsdinstall/scripts
Glen Barber
gjb at FreeBSD.org
Fri Feb 13 21:21:39 UTC 2015
Author: gjb
Date: Fri Feb 13 21:21:38 2015
New Revision: 278711
URL: https://svnweb.freebsd.org/changeset/base/278711
Log:
Fix WANT_DEBUG boolean test.
Submitted by: jilles
Sponsored by: The FreeBSD Foundation
Modified:
projects/release-install-debug/usr.sbin/bsdinstall/scripts/auto
Modified: projects/release-install-debug/usr.sbin/bsdinstall/scripts/auto
==============================================================================
--- projects/release-install-debug/usr.sbin/bsdinstall/scripts/auto Fri Feb 13 21:19:54 2015 (r278710)
+++ projects/release-install-debug/usr.sbin/bsdinstall/scripts/auto Fri Feb 13 21:21:38 2015 (r278711)
@@ -162,7 +162,7 @@ esac
if [ ! -z "$FETCH_DISTRIBUTIONS" ]; then
ALL_DISTRIBUTIONS="$DISTRIBUTIONS"
- WANT_DEBUG=false
+ WANT_DEBUG=
# Download to a directory in the new system as scratch space
BSDINSTALL_FETCHDEST="$BSDINSTALL_CHROOT/usr/freebsd-dist"
@@ -186,7 +186,7 @@ if [ ! -z "$FETCH_DISTRIBUTIONS" ]; then
*-dbg.*)
[ -e $BSDINSTALL_DISTDIR/$_DISTRIBUTION ] \
&& continue
- WANT_DEBUG=true
+ WANT_DEBUG=1
DEBUG_LIST="\n$DEBUG_LIST\n$_DISTRIBUTION"
;;
*)
@@ -204,7 +204,7 @@ if [ ! -z "$FETCH_DISTRIBUTIONS" ]; then
# installation, since failure to fetch *-dbg.txz should not
# be considered a fatal installation error.
msg="Failed to fetch remote distribution"
- if [ $WANT_DEBUG ]; then
+ if [ ! -z "$WANT_DEBUG" ]; then
# Trim leading and trailing newlines.
DEBUG_LIST="${DEBUG_LIST%%\n}"
DEBUG_LIST="${DEBUG_LIST##\n}"
More information about the svn-src-projects
mailing list