eobuilder: only call process the queued package on deb.entrouvert.org if something was built

This commit is contained in:
Benjamin Dauvergne 2013-09-18 23:01:46 +02:00
parent 8e81fd0b05
commit 8f664e2b4f
1 changed files with 6 additions and 2 deletions

View File

@ -146,6 +146,7 @@ if ! is_something_to_build $PROJECT_NAME $PROJECT_VERSION; then
exit 0
fi
DID_BUILD=0
for DIST in $DISTS; do
cd $GIT_PROJECT_PATH
@ -247,12 +248,15 @@ for DIST in $DISTS; do
echo "+ Sending package ..."
cd $PBUILDER_PROJECT_RESULT
dput -u $DEBIAN_REPOSITORY ${PACKAGE_NAME}_${PACKAGE_VERSION}_${ARCH}.changes
DID_BUILD=1
fi
done
echo "+ Add a build file to lock new build for $DIST"
touch $GIT_PATH/${PROJECT_NAME}_${PACKAGE_VERSION}_${DIST}.build
done
echo "+ Updating repository ..."
ssh root@leucas.entrouvert.org "/etc/cron.hourly/process-incoming"
if [ $DID_BUILD -eq 1 ]; then
echo "+ Updating repository ..."
ssh root@leucas.entrouvert.org "/etc/cron.hourly/process-incoming"
fi