Skip to content

Commit

Permalink
Merge pull request #179 from jblunck/lintian_break_build
Browse files Browse the repository at this point in the history
[backend] Allow lintian to break the build
  • Loading branch information
mlschroe committed Jun 9, 2015
2 parents c68ac29 + 559cdf5 commit abaed32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-recipe-dsc
Expand Up @@ -91,9 +91,9 @@ dsc_build() {
chroot $buildroot su -
else
chroot $buildroot su -c "export DEB_BUILD_OPTIONS=${DSC_BUILD_OPTIONS} ; cd $TOPDIR/BUILD && $DSC_BUILD_CMD" - $BUILD_USER < /dev/null && BUILD_SUCCEEDED=true
if test "$BUILD_SUCCEEDED" = true -a "$DO_CHECKS" != "false"; then
if test "$BUILD_SUCCEEDED" = true -a "$DO_CHECKS" != "false" && ( chroot $buildroot su -c "which lintian > /dev/null" - $BUILD_USER < /dev/null ); then
DEB_CHANGESFILE=${RECIPEFILE%.dsc}_"$(chroot $buildroot su -c 'dpkg-architecture -qDEB_BUILD_ARCH')".changes
chroot $buildroot su -c "which lintian > /dev/null && cd $TOPDIR && echo Running lintian && (set -x && lintian -i $DEB_SOURCEDIR/$DEB_DSCFILE)" - $BUILD_USER < /dev/null
chroot $buildroot su -c "cd $TOPDIR && echo Running lintian && (set -x && lintian -i $DEB_SOURCEDIR/$DEB_DSCFILE)" - $BUILD_USER < /dev/null || BUILD_SUCCEEDED=false
fi
fi
}
Expand Down

0 comments on commit abaed32

Please sign in to comment.