Re: Using a pbuilder hook to test install/remove process

2009-04-02 Thread Holger Levsen
Hi, On Donnerstag, 2. April 2009, Ben Finney wrote: Yes. My question is, though, is it a good idea to run the one within the other? As I understand it, ‘piuparts’ does its work inside a chroot; is it advisable for that to happen while already inside ‘pbuilder’s existing chroot? not really,

Using a pbuilder hook to test install/remove process

2009-04-01 Thread Ben Finney
Howdy all, I'm trying to make more use of ‘pbuilder’ hooks for automating the testing of my packages. Does it make sense to use a hook to install and remove the package after it is built? The plus side is this would test that the {pre,post}{inst,rm} programs run successfully. What are the

Re: Using a pbuilder hook to test install/remove process

2009-04-01 Thread Ben Finney
Ben Finney ben+deb...@benfinney.id.au writes: Does it make sense to use a hook to install and remove the package [in a ‘pbuilder’ chroot] after it is built? The plus side is this would test that the {pre,post}{inst,rm} programs run successfully. What are the negatives of this approach? I've

Re: Using a pbuilder hook to test install/remove process

2009-04-01 Thread Chow Loong Jin
On Thu, 2009-04-02 at 11:32 +1100, Ben Finney wrote: I've been made aware of ‘piuparts’. Would it make sense to have a hook to run this command, on the newly-built package, inside the ‘pbuilder’ chroot? How would such a hook program get access to the file name of the binary package? I think

Re: Using a pbuilder hook to test install/remove process

2009-04-01 Thread Ben Finney
Chow Loong Jin hyper...@gmail.com writes: I think you should look at the lintian hook example in /usr/share/doc/pbuilder/examples. That could possibly be copied and modified to use piuparts. Yes. My question is, though, is it a good idea to run the one within the other? As I understand it,