Skip to content

Commit

Permalink
Call lintian for dpkg builds if available
Browse files Browse the repository at this point in the history
  • Loading branch information
stbuehler authored and adrianschroeter committed May 14, 2013
1 parent f116a6a commit 8904cc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -2986,6 +2986,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do
chroot $BUILD_ROOT su -
else
chroot $BUILD_ROOT su -c "cd $TOPDIR/BUILD && $DSC_BUILD_CMD" - $BUILD_USER < /dev/null && BUILD_SUCCEEDED=true
if test "$BUILD_SUCCEEDED" = true -a "$DO_CHECKS" != "false"; then
DEB_CHANGESFILE=${SPECFILE%.dsc}_$(dpkg-architecture -qDEB_BUILD_ARCH).changes
chroot $BUILD_ROOT su -c "which lintian > /dev/null && cd $TOPDIR && echo Running lintian && lintian -i $DEB_CHANGESFILE" - $BUILD_USER < /dev/null
fi
fi

mkdir -p $BUILD_ROOT/$TOPDIR/DEBS
Expand Down

2 comments on commit 8904cc1

@mmohring
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For debian 6.0 and 7.0, now I get on every build a:

/usr/bin/build: line 2992: dpkg-architecture: command not found

in the logfile....

@mmohring
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dpkg-architecture must be called chrooted

Please sign in to comment.