tazwok rev 326

Fixed tazwok to work with new bash 4.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 19 22:57:02 2011 +0000 (2011-02-19)
parents 9b4d31fbaa11
children 8911f8d7295e
files tazwok
line diff
     1.1 --- a/tazwok	Sun Feb 20 02:53:10 2011 +0100
     1.2 +++ b/tazwok	Sat Feb 19 22:57:02 2011 +0000
     1.3 @@ -436,7 +436,7 @@
     1.4  {
     1.5  	[ "$WGET_URL" ] || return 0
     1.6  	report step "Checking for source tarball: $PACKAGE"
     1.7 -	local repack_src TARBALL
     1.8 +	local repack_src=$repack_src TARBALL=$TARBALL
     1.9  	if [ "$repack_src" = yes ] && look_for_cookopt !repack_src; then
    1.10  			repack_src=no
    1.11  	fi
    1.12 @@ -1369,7 +1369,7 @@
    1.13  
    1.14  update_wan_db()
    1.15  {
    1.16 -	local PACKAGE
    1.17 +	local PACKAGE=$PACKAGE
    1.18  	for RECEIPT in $(fgrep WANTED $WOK/*/receipt | \
    1.19  		fgrep $PACKAGE | cut -f1 -d ':'); do
    1.20  		WANTED=
    1.21 @@ -1583,7 +1583,7 @@
    1.22  scan()
    1.23  {
    1.24  	# Get packages in argument.
    1.25 -	local PACKAGE WANTED pkg_list=
    1.26 +	local PACKAGE=$PACKAGE WANTED=$WANTED pkg_list=
    1.27  	for arg in $@; do
    1.28  		[ "$arg" = "${arg#--}" ] || continue
    1.29  		pkg_list="$pkg_list $arg"
    1.30 @@ -1700,7 +1700,7 @@
    1.31  
    1.32  check_for_missing()
    1.33  {
    1.34 -	local PACKAGE
    1.35 +	local PACKAGE=$PACKAGE
    1.36  	if ! check_for_pkg_in_wok; then
    1.37  		[ "$?" = 2 ] && return 1
    1.38  		return