tazlito rev 17

pave the road to flavors. Use 'tazpkg install --root='
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 14 19:51:19 2007 +0000 (2007-12-14)
parents 9d2a15baf228
children 12ae06f2655a
files tazlito
line diff
     1.1 --- a/tazlito	Fri Dec 14 09:19:35 2007 +0000
     1.2 +++ b/tazlito	Fri Dec 14 19:51:19 2007 +0000
     1.3 @@ -453,7 +453,6 @@
     1.4  		sleep 2
     1.5  		for pkg in $LIST
     1.6  		do
     1.7 -			local here=`pwd`
     1.8  			# First copy and extract the package in tmp dir.
     1.9  			pkg=${pkg%.tazpkg}
    1.10  			mkdir -p $TMP_DIR
    1.11 @@ -470,27 +469,7 @@
    1.12  				echo "Missing package $pkg."
    1.13  				exit 1
    1.14  			fi
    1.15 -			cp $PACKAGES_REPOSITORY/$pkg.tazpkg $TMP_DIR && cd $TMP_DIR
    1.16 -			echo ""
    1.17 -			echo -n "Installing $PACKAGE... "
    1.18 -			cpio -id < $pkg.tazpkg && rm -f $pkg.tazpkg
    1.19 -			echo -n "Extracting the file system... "
    1.20 -			zcat fs.cpio.gz | cpio -id && rm fs.cpio.gz
    1.21 -			# Copy all packages fs and receipt to the rootfs.
    1.22 -			echo -n "Copying files to the rootfs..."
    1.23 -			cp -a fs/* $ROOTFS
    1.24 -			. $PWD/receipt
    1.25 -			mkdir -p $ROOTFS$INSTALLED/$PACKAGE
    1.26 -			# Copy the receipt, list of files and description if exist.
    1.27 -			cp receipt $ROOTFS$INSTALLED/$PACKAGE
    1.28 -			cp files.list $ROOTFS$INSTALLED/$PACKAGE
    1.29 -			if [ -f "description.txt" ] ; then
    1.30 -				cp description.txt $ROOTFS$INSTALLED/$PACKAGE
    1.31 -			fi
    1.32 -			status
    1.33 -			cd $here
    1.34 -			# Remove tmp dir to get a empty one for the next package.
    1.35 -			rm -rf $TMP_DIR
    1.36 +			yes "" | tazpkg install $PACKAGES_REPOSITORY/$pkg.tazpkg --root=$ROOTFS
    1.37  		done
    1.38  		echo ""
    1.39  		cd $DISTRO