wok-current rev 6330

Make sure package receipt exists before source in check_commit function. I hope this causes no problems.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Sep 18 16:45:22 2010 +0000 (2010-09-18)
parents b084f9ed4a92
children 2c34d8aa6bfb
files tazbb/stuff/tazbb
line diff
     1.1 --- a/tazbb/stuff/tazbb	Fri Sep 17 18:47:50 2010 +0000
     1.2 +++ b/tazbb/stuff/tazbb	Sat Sep 18 16:45:22 2010 +0000
     1.3 @@ -378,9 +378,11 @@
     1.4  	do
     1.5  		pkg=`echo $file | cut -d "/" -f 1`
     1.6  		if ! grep -q ^$pkg$ $DB_DIR/cooklist; then
     1.7 -			. $pkg/receipt
     1.8 -			echo "Commit  : $PACKAGE ($VERSION)" >> $DB_DIR/report
     1.9 -			echo "$PACKAGE" >> $DB_DIR/cooklist
    1.10 +			if [ -f $pkg/receipt ]; then
    1.11 +				. $pkg/receipt
    1.12 +				echo "Commit  : $PACKAGE ($VERSION)" >> $DB_DIR/report
    1.13 +				echo "$PACKAGE" >> $DB_DIR/cooklist
    1.14 +			fi
    1.15  		fi
    1.16  	done
    1.17  	packages_summary