# HG changeset patch # User Aleksej Bobylev # Date 1547768941 -7200 # Node ID 2b5f129c7b28ea664a36ff6e3057a75a0b87e64b # Parent a8676623b936d478a00dbd47615413269ccd3c55 cooker: improve previous commit diff -r a8676623b936 -r 2b5f129c7b28 cooker --- a/cooker Fri Jan 18 01:06:00 2019 +0200 +++ b/cooker Fri Jan 18 01:49:01 2019 +0200 @@ -294,7 +294,7 @@ fi unset HOST_ARCH else - # HOST_ARCH not set --> package is suitable for current ARCH (equivalent to "any") + # HOST_ARCH not set --> package is suitable for current ARCH count=$(($count + 1)) echo "Adding: $pkg" touch $pkg/arch.$ARCH @@ -663,7 +663,7 @@ # clean DB as well as log file. cd $wok for pkg in *; do - if [ ! -d "$wok-hg/$pkg" ]; then + if [ ! -d "$wok-hg/$pkg" -o -e "$wok-hg/$pkg/.hidden" ]; then echo "Removing package: $pkg" | log_commits if [ -s $wok/$pkg/receipt ]; then . $wok/$pkg/receipt