# HG changeset patch # User Rob Landley # Date 1245866523 18000 # Node ID 93149f07231ff88df2b99dd13dc66398ba4ad8b5 # Parent 2537f30c239718717c129e70e9fc19b834120132 Blank ARCH is a bad signal because host-tools.sh has that, so use a separate EXTRACT_ONLY variable. diff -r 2537f30c2397 -r 93149f07231f sources/functions.sh --- a/sources/functions.sh Tue Jun 23 23:18:19 2009 -0500 +++ b/sources/functions.sh Wed Jun 24 13:02:03 2009 -0500 @@ -235,7 +235,7 @@ # Preemptively extract source packages? [ -z "$EXTRACT_ALL" ] && return 0 - ARCH="" setupfor "$(basename "$FILENAME")" + EXTRACT_ONLY=1 setupfor "$(basename "$FILENAME")" return $? fi @@ -377,7 +377,7 @@ extract "${PACKAGE}-"*.tar* || exit 1 # If all we want to do is extract source, bail out now. - [ -z "$ARCH" ] && return 0 + [ ! -z "$EXTRACT_ONLY" ] && return 0 # Set CURSRC CURSRC="$PACKAGE" @@ -452,7 +452,7 @@ then # Need to extract unstable packages to determine source control version. - ARCH="" setupfor "$1" >&2 + EXTRACT_ONLY=1 setupfor "$1" >&2 DIR="${BUILD}/sources/alt-$1" if [ -d "$DIR/.svn" ]