wok rev 5132

tazbb: clean build wok stuff/ dir
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 23 10:47:56 2010 +0100 (2010-03-23)
parents 67404973a113
children dc1c28cf5924
files tazbb/receipt tazbb/stuff/tazbb
line diff
     1.1 --- a/tazbb/receipt	Mon Mar 22 19:47:06 2010 +0000
     1.2 +++ b/tazbb/receipt	Tue Mar 23 10:47:56 2010 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tazbb"
     1.7 -VERSION="1.3"
     1.8 +VERSION="1.4"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="SliTaz Build Bot."
    1.11  MAINTAINER="pankso@slitaz.org"
     2.1 --- a/tazbb/stuff/tazbb	Mon Mar 22 19:47:06 2010 +0000
     2.2 +++ b/tazbb/stuff/tazbb	Tue Mar 23 10:47:56 2010 +0100
     2.3 @@ -676,6 +676,21 @@
     2.4  	# Keep the 20 last removed packages list.
     2.5  	cat $DB_DIR/removed | tail -n 20 > /tmp/removed.tail
     2.6  	mv -f /tmp/removed.tail $DB_DIR/removed
     2.7 +	# Clean packages stuff/ directory
     2.8 +	echo -e "\nCleaning the build wok stuff/ directories...\n"
     2.9 +	for pkg in `ls $BUILD_WOK`
    2.10 +	do
    2.11 +		if [ -d "$BUILD_WOK/$pkg/stuff" ]; then
    2.12 +			cd $BUILD_WOK/$pkg
    2.13 +			for file in `find stuff -type f`
    2.14 +			do
    2.15 +				if [ ! -f "$HG_WOK/$pkg/$file" ]; then
    2.16 +					echo "Removing: $pkg/$file"
    2.17 +					rm $file
    2.18 +				fi
    2.19 +			done
    2.20 +		fi
    2.21 +	done
    2.22  }
    2.23  
    2.24  blocked_urls()