Skip to content

Commit

Permalink
Make lintian work after Debian transformer touched it
Browse files Browse the repository at this point in the history
After the Debian transformer is run the recipe filename is changed.
Therefore the Debian changes filename is deduced from the DEB_DSCFILE
instead.
  • Loading branch information
jblunck committed Jul 27, 2015
1 parent 9a47d39 commit f54f651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-recipe-dsc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ dsc_build() {
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" && ( 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
DEB_CHANGESFILE=${DEB_DSCFILE%.dsc}_"$(chroot $buildroot su -c 'dpkg-architecture -qDEB_BUILD_ARCH')".changes
if test -e "$buildroot/$TOPDIR/$DEB_CHANGESFILE"; then
chroot $buildroot su -c "cd $TOPDIR && echo Running lintian && (set -x && lintian -i $TOPDIR/$DEB_CHANGESFILE)" - $BUILD_USER < /dev/null || BUILD_SUCCEEDED=false
fi
Expand Down

0 comments on commit f54f651

Please sign in to comment.