[Piuparts-devel] Bug#352940: Please support testing packages in changes files

Andres Mejia mcitadel at gmail.com
Mon Dec 8 04:41:31 UTC 2008


tags 352940 + patch
thanks

Here's a patch that implements the feature for piuparts to scan packages from 
a changes file. I patched the docbook file as well.

The way I implemented this change was so piuparts would scan the packages of 
each individual changes file separately. There is an option however to allow 
piuparts to scan packages from all changes files together.

An unrelated change I made was with the panic() method. It takes an optional 
parameter to specify what exit status to use. I did this for my own testing. 
No other changes were needed throughout the program and I thought it might be 
useful later so I left it in there. Feel free exclude that change if you 
wish.

Also, I changed some methods from using 'args' to 'package_list'. This more 
accurately represents what is being passed into these methods now.

As a final note. I also attached the python script I used for helping me 
develop the new feature. Also, I've attached a modified form of the shell 
script I've sent earlier that makes use of the new feature. Feel free to use 
both however you wish.

-- 
Regards,
Andres
-------------- next part --------------
A non-text attachment was scrubbed...
Name: piuparts-changes-feature.patch
Type: text/x-diff
Size: 13454 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20081207/f3ce6e75/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: piuparts-test-py
Type: application/x-python
Size: 2494 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20081207/f3ce6e75/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: piuparts-changes-test
Type: application/x-shellscript
Size: 1160 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20081207/f3ce6e75/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20081207/f3ce6e75/attachment.pgp 


More information about the Piuparts-devel mailing list