only push upstream source in the first build

This commit is contained in:
Benjamin Dauvergne 2013-11-21 14:11:36 +01:00
parent 1ed161eb5d
commit adf7a88322
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ for DIST in $DISTS; do
if [ -f $SOURCE_BUILD ]; then
SOURCE_OPT='-b' # build only binary packages
else
SOURCE_OPT=''
SOURCE_OPT='-sa'
fi
if [ $NEW -eq 0 -a -f $GIT_PATH/${PROJECT_NAME}_${PACKAGE_VERSION}_${DIST}_${ARCH}.build ]; then
echo "Already built."
@ -276,7 +276,7 @@ for DIST in $DISTS; do
cd $BUILD_DIR/$PROJECT_NAME-$PROJECT_VERSION
echo "+ Building $PROJECT_NAME $PROJECT_VERSION $DIST $ARCH"
DIST=$DIST ARCH=$ARCH pdebuild --use-pdebuild-internal --debbuildopts '-sa' --debbuildopts '-I*.mo'
DIST=$DIST ARCH=$ARCH pdebuild --use-pdebuild-internal --debbuildopts "$SOURCE_OPT" --debbuildopts '-I*.mo'
echo "+ Add a build file to lock new build for $DIST on $ARCH"
touch $GIT_PATH/${PROJECT_NAME}_${PACKAGE_VERSION}_${DIST}_${ARCH}.build