Bug#544578: Lintian example hook causes pbuilder to purge *.deb if there are errors
Loïc Minier
lool at dooz.org
Mon Sep 21 14:34:21 UTC 2009
On Tue, Sep 08, 2009, Chow Loong Jin wrote:
> On Tuesday 08,September,2009 10:34 PM, Junichi Uekawa wrote:
> > Here you are mistaken; the purpose of B90lintian is to fail the build
> > when there is a lintian error.
> Ah I see. I was thinking that it was just to run lintian to show output in case
> the packager forgets to run lintian on the debs him/herself, but dump the debs
> in $BUILDRESULT anyway for examination.
>
> Anyway, in this case, I think making C10shell get triggered if B90lintian fails
> is a good idea.
I've updated the sample hook to look a little nicer, run as pbuilder
rather root, and with a version of the lintian call which ignores
failures.
Attaching new version.
Cheers
--
Loïc Minier
-------------- next part --------------
#!/bin/sh
set -e
install_packages() {
apt-get -y --force-yes install "$@"
}
install_packages lintian
echo "+++ lintian output +++"
su -c "lintian -I --show-overrides /tmp/buildd/*.changes" - pbuilder
# use this version if you don't want lintian to fail the build
#su -c "lintian -I --show-overrides /tmp/buildd/*.changes; :" - pbuilder
echo "+++ end of lintian output +++"
More information about the Pbuilder-maint
mailing list