On Tue, 11 Jun 2013 01:21:11 +0200 Vincent Lefevre wrote: [...] > On 2013-06-10 21:00:54 +0200, Francesco Poli wrote: [...] > > I agree that it would be useful, but I am afraid that implementing the > > parser for such options would be somewhat of an overkill for a simple > > tool like apt-listbugs... > > I think a list of filters could be both simple and sufficient. > e.g. with a syntax like: > > apt-listbugs -f s:critical,grave,serious -f s:important,T:security apt
This would still be a significant rewrite of the filtering features: apt-listbugs currently queries the BTS (via SOAP) for bugs of the desired severities, and then drops all the bugs that should be filtered out (based on tags, bug numbers, and so forth...). Hence all the filters are in AND with each other "by design", I would almost say. > > > What about invoking apt-listbugs multiple times (once for each filter > > you would like to be in OR with other ones)? > > I'll have to test in practice, but via DPkg::Pre-Install-Pkgs, I may > need to confirm twice. Yes, if you invoke apt-listbugs twice, you'll have to interact with it twice (as long as both invocations require input from you, of course!). > However perhaps this won't happen very often. I re-iterate my suggestion to try this strategy and to let me know how it worked. Bye. -- http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt New GnuPG key, see the transition document! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
pgp1DLDrnsDTL.pgp
Description: PGP signature