cookutils diff cooker @ rev 860

cook: changed the algorithm for determining the free memory: Busybox-1.26.1 has different output of the `free` command.
I believe with /proc/meminfo it will be more consistent result.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jan 08 01:50:38 2017 +0200 (2017-01-08)
parents 2850833e8670
children 71118129435e
line diff
     1.1 --- a/cooker	Wed May 25 21:08:50 2016 +0200
     1.2 +++ b/cooker	Sun Jan 08 01:50:38 2017 +0200
     1.3 @@ -226,6 +226,7 @@
     1.4  	rm -f $wok/*/arch.$ARCH && cd $wok
     1.5  	echo "Creating $ARCH packages DB..."
     1.6  	for pkg in *; do
     1.7 +		[ -s $wok/$pkg/receipt ] || continue
     1.8  		HOST_ARCH=
     1.9  		. $wok/$pkg/receipt
    1.10  		if [ -n "$HOST_ARCH" ]; then
    1.11 @@ -351,6 +352,7 @@
    1.12  
    1.13  		cd $wok
    1.14  		for rev in *; do
    1.15 +			[ -s $wok/$rev/receipt ] || continue
    1.16  			unset WANTED DEPENDS BUILD_DEPENDS; . $wok/$rev/receipt
    1.17  			if echo "$WANTED $DEPENDS $BUILD_DEPENDS" | fgrep -q $pkg; then
    1.18  				echo "$rev" | tee -a $cooklist
    1.19 @@ -375,6 +377,7 @@
    1.20  
    1.21  		cd $wok
    1.22  		for pkg in *; do
    1.23 +			[ -s $pkg/receipt ] || continue
    1.24  			unset CATEGORY; . $pkg/receipt
    1.25  			[ "$CATEGORY" == "$cat" ] && echo $pkg >> $cooklist
    1.26  		done
    1.27 @@ -439,6 +442,7 @@
    1.28  
    1.29  		cd $wok
    1.30  		for pkg in *; do
    1.31 +			[ -s $pkg/receipt ] || continue
    1.32  			unset EXTRAVERSION
    1.33  			. $pkg/receipt
    1.34  			[ -f "$pkg/taz/$PACKAGE-$VERSION/receipt" ] && \