cookutils rev 1133

cooker: improve previous commit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 18 01:49:01 2019 +0200 (2019-01-18)
parents a8676623b936
children a5e73bdcc218
files cooker
line diff
     1.1 --- a/cooker	Fri Jan 18 01:06:00 2019 +0200
     1.2 +++ b/cooker	Fri Jan 18 01:49:01 2019 +0200
     1.3 @@ -294,7 +294,7 @@
     1.4  			fi
     1.5  			unset HOST_ARCH
     1.6  		else
     1.7 -			# HOST_ARCH not set --> package is suitable for current ARCH (equivalent to "any")
     1.8 +			# HOST_ARCH not set --> package is suitable for current ARCH
     1.9  			count=$(($count + 1))
    1.10  			echo "Adding: $pkg"
    1.11  			touch $pkg/arch.$ARCH
    1.12 @@ -663,7 +663,7 @@
    1.13  		# clean DB as well as log file.
    1.14  		cd $wok
    1.15  		for pkg in *; do
    1.16 -			if [ ! -d "$wok-hg/$pkg" ]; then
    1.17 +			if [ ! -d "$wok-hg/$pkg" -o -e "$wok-hg/$pkg/.hidden" ]; then
    1.18  				echo "Removing package: $pkg" | log_commits
    1.19  				if [ -s $wok/$pkg/receipt ]; then
    1.20  					. $wok/$pkg/receipt