# HG changeset patch # User Christophe Lincoln # Date 1269337676 -3600 # Node ID 8c1a39e4682cbffb911186c25975622d953baece # Parent 67404973a11300479153c4268a93eaf2909dce90 tazbb: clean build wok stuff/ dir diff -r 67404973a113 -r 8c1a39e4682c tazbb/receipt --- a/tazbb/receipt Mon Mar 22 19:47:06 2010 +0000 +++ b/tazbb/receipt Tue Mar 23 10:47:56 2010 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="tazbb" -VERSION="1.3" +VERSION="1.4" CATEGORY="development" SHORT_DESC="SliTaz Build Bot." MAINTAINER="pankso@slitaz.org" diff -r 67404973a113 -r 8c1a39e4682c tazbb/stuff/tazbb --- a/tazbb/stuff/tazbb Mon Mar 22 19:47:06 2010 +0000 +++ b/tazbb/stuff/tazbb Tue Mar 23 10:47:56 2010 +0100 @@ -676,6 +676,21 @@ # Keep the 20 last removed packages list. cat $DB_DIR/removed | tail -n 20 > /tmp/removed.tail mv -f /tmp/removed.tail $DB_DIR/removed + # Clean packages stuff/ directory + echo -e "\nCleaning the build wok stuff/ directories...\n" + for pkg in `ls $BUILD_WOK` + do + if [ -d "$BUILD_WOK/$pkg/stuff" ]; then + cd $BUILD_WOK/$pkg + for file in `find stuff -type f` + do + if [ ! -f "$HG_WOK/$pkg/$file" ]; then + echo "Removing: $pkg/$file" + rm $file + fi + done + fi + done } blocked_urls()