Re: pbuilder and building a package twice in a row with hook-skript?
Ben Finney <ben+debian@benfinney.id.au> writes:
> $ cat $HOME/.pbuilder/hooks/B10_build-again
> #! /bin/sh
This program uses Bashisms, so I've changed the shebang accordingly.
> # Build the package again to test for error on double build
>
> echo "I: building the package again"
> for dir in $(ls -d /tmp/buildd/*/) ; do
> cd ${dir}
> dpkg-buildpackage -tc
> done
Hmm. When I try this on some of my packages it fails, because
apparently ‘dpkg-buildpackage -tc’ isn't how ‘pbuilder’ is running the
program.
How, within a pbuilder hook program, can I get the complete command
line that pbuilder uses to invoke ‘dpkg-buildpackage’?
--
\ “Working out the social politics of who you can trust and why |
`\ is, quite literally, what a very large part of our brain has |
_o__) evolved to do.” —Douglas Adams |
Ben Finney
Reply to: