eobuilder: clean the build dir not the full temporary directory as it could interfer with other builders

This commit is contained in:
Benjamin Dauvergne 2013-09-18 22:33:15 +02:00
parent 0d06bb4820
commit e3b1d49a70
1 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,6 @@ fi
GIT_NAME=$1
rm -rf EOBUILDER_TMP
if [ ! -d $GIT_PATH ]; then
mkdir $GIT_PATH
fi
@ -134,6 +133,8 @@ PROJECT_FULL_NAME=`python setup.py --fullname`
BUILD_DIR="$EOBUILDER_TMP/$PROJECT_NAME"
COMMIT_NUMBER=`git log -n1 | grep 'commit' | sed 's/commit\s*//'`
rm -rf $BUILD_DIR
if ! is_something_to_build $PROJECT_NAME $PROJECT_VERSION; then
echo "+ Everything already build !"
exit 0
@ -250,5 +251,5 @@ echo "+ Updating repository ..."
ssh root@leucas.entrouvert.org "/etc/cron.hourly/process-incoming"
echo "+ Cleaning ..."
rm -rf $EOBUILDER_TMP
rm -rf $BUILD_DIR