tazwok rev 194

Fix: typo
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Jan 23 16:59:02 2011 +0100 (2011-01-23)
parents 7dd13eca7c0b
children 70e85df2121b
files tazwok
line diff
     1.1 --- a/tazwok	Sun Jan 23 00:06:01 2011 +0100
     1.2 +++ b/tazwok	Sun Jan 23 16:59:02 2011 +0100
     1.3 @@ -1169,9 +1169,9 @@
     1.4  	# Dont log this because lzma always output error.
     1.5  	lzma e files.list files.list.lzma
     1.6  	rm files.list 2>/dev/null
     1.7 -	if ! grep -q ^$pkg_repository$ $LOCAL_STATE/mirror && \
     1.8 -		! { [ -d $LOCAL_STATE/undigest ] && \
     1.9 -		grep -q ^$pkg_repository$ $LOCAL_STATE/undigest/*/mirror; }; then
    1.10 +	if ! grep -q ^$pkg_repository$ $LOCALSTATE/mirror && \
    1.11 +		! { [ -d $LOCALSTATE/undigest ] && \
    1.12 +		grep -q ^$pkg_repository$ $LOCALSTATE/undigest/*/mirror; }; then
    1.13  		tazpkg add-undigest $(basename `echo $pkg_repository | sed 's~/packages~~'`) $pkg_repository
    1.14  	fi
    1.15  }
    1.16 @@ -1921,7 +1921,7 @@
    1.17  	done
    1.18  
    1.19  	# Store list of installed packages needed by cleanchroot.
    1.20 -	ls -1 \$chroot_dir/\$INSTALLED > \$chroot_dir/\$LOCAL_STATE/chroot-pkgs
    1.21 +	ls -1 \$chroot_dir/\$INSTALLED > \$chroot_dir/\$LOCALSTATE/chroot-pkgs
    1.22  
    1.23  	sed -e "s~^SLITAZ_DIR=.*~SLITAZ_DIR=\$SLITAZ_DIR~" \\
    1.24  		-e "s/^SLITAZ_VERSION=.*/SLITAZ_VERSION=\$SLITAZ_VERSION/" \\
    1.25 @@ -1933,12 +1933,12 @@
    1.26  mount_chroot()
    1.27  {
    1.28  	cp -a /etc/resolv.conf \$chroot_dir/etc/resolv.conf
    1.29 -	echo "\$LOCAL_REPOSITORY/packages" > \$chroot_dir\$LOCAL_STATE/mirror
    1.30 -	mkdir -p \$chroot_dir\$LOCAL_STATE/undigest/\${LOCAL_REPOSITORY##*/}-incoming
    1.31 -	echo "\$LOCAL_REPOSITORY/packages-incoming" > \$chroot_dir\$LOCAL_STATE/undigest/\${LOCAL_REPOSITORY##*/}-incoming/mirror
    1.32 -$( [ "$undigest" ] && echo '	mkdir -p $chroot_dir$LOCAL_STATE/undigest/$SLITAZ_VERSION
    1.33 -	echo "$SLITAZ_DIR/$SLITAZ_VERSION/packages" > $chroot_dir$LOCAL_STATE/undigest/$SLITAZ_VERSION/mirror' )
    1.34 -	echo -e "\${LOCAL_REPOSITORY##*/}-incoming\nmain" > \$chroot_dir\$LOCAL_STATE/priority
    1.35 +	echo "\$LOCAL_REPOSITORY/packages" > \$chroot_dir\$LOCALSTATE/mirror
    1.36 +	mkdir -p \$chroot_dir\$LOCALSTATE/undigest/\${LOCAL_REPOSITORY##*/}-incoming
    1.37 +	echo "\$LOCAL_REPOSITORY/packages-incoming" > \$chroot_dir\$LOCALSTATE/undigest/\${LOCAL_REPOSITORY##*/}-incoming/mirror
    1.38 +$( [ "$undigest" ] && echo '	mkdir -p $chroot_dir$LOCALSTATE/undigest/$SLITAZ_VERSION
    1.39 +	echo "$SLITAZ_DIR/$SLITAZ_VERSION/packages" > $chroot_dir$LOCALSTATE/undigest/$SLITAZ_VERSION/mirror' )
    1.40 +	echo -e "\${LOCAL_REPOSITORY##*/}-incoming\nmain" > \$chroot_dir\$LOCALSTATE/priority
    1.41  	mount -t proc proc \$chroot_dir/proc
    1.42  	mount -t sysfs sysfs \$chroot_dir/sys
    1.43  	mount -t devpts devpts \$chroot_dir/dev/pts