slitaz-modular rev 5

Make mkiso.sh check for package files.list instead of just the folder in /var/lib/tazpkg/installed.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 01 03:12:56 2010 +0000 (2010-12-01)
parents 22221b54a22c
children 7bc896290992
files mkiso.sh
line diff
     1.1 --- a/mkiso.sh	Sat Nov 27 04:35:44 2010 +0000
     1.2 +++ b/mkiso.sh	Wed Dec 01 03:12:56 2010 +0000
     1.3 @@ -112,7 +112,7 @@
     1.4  
     1.5  	info "Making bootable image"
     1.6  	cat "$PROFILE/list/initramfs.list" | grep -v "^#" | while read pkgname; do
     1.7 -		if [ ! -d ${INITRAMFS}/var/lib/tazpkg/installed/${pkgname} ]; then
     1.8 +		if [ ! -f ${INITRAMFS}/var/lib/tazpkg/installed/${pkgname}/files.list ]; then
     1.9  			tazpkg get-install $pkgname --root=$INITRAMFS | tee -a $LOG/initramfs.log
    1.10  			sleep 1
    1.11  		else
    1.12 @@ -170,7 +170,7 @@
    1.13  	elif [ ! -d ${MODULES_DIR}/${mod}/var/lib/tazpkg/installed ]; then
    1.14  		if [ -f "$PROFILE/list/${mod}.list" ]; then
    1.15  			cat "$PROFILE/list/${mod}.list" | grep -v "^#" | while read pkgname; do
    1.16 -				if [ ! -d ${UNION}/var/lib/tazpkg/installed/${pkgname} ]; then
    1.17 +				if [ ! -f ${UNION}/var/lib/tazpkg/installed/${pkgname}/files.list ]; then
    1.18  					tazpkg get-install $pkgname --root=${UNION} | tee -a ${LOG}/${mod}-current.log
    1.19  					sleep 1
    1.20  				else
    1.21 @@ -181,7 +181,7 @@
    1.22  
    1.23  		if [ -f $PROFILE/list/${mod}.removelist ]; then
    1.24  			cat "$PROFILE/list/${mod}.removelist" | grep -v "^#" | while read pkgname; do
    1.25 -				if [ -d ${UNION}/var/lib/tazpkg/installed/${pkgname} ]; then
    1.26 +				if [ -f ${UNION}/var/lib/tazpkg/installed/${pkgname}/files.list ]; then
    1.27  					echo "y" | tazpkg remove ${pkgname} --root=${UNION} | tee -a ${LOG}/${mod}-current.log
    1.28  					sleep 1
    1.29  				else