On Wed, Jun 24, 2015 at 11:25:54PM +0200, Johannes Schauer wrote: > Hi, > > Quoting David Kalnischkies (2015-06-24 23:18:12) > > So, long story short, the solution I would like to propose is: > > > > $ apt-get files "Codename: sid" "Trusted: yes" "Created-By: Packages" > > […] > > so the arguments to "apt-get files" are fields and values and the command will > output all paragraphs where all those fields match? > > Can one omit these field:value pairs to get everything? This would allow doing > a custom selection with the more powerful grep-dctrl tool for example. Sure, but I realize now the doc isn't very clear about that… In fact, it is pretty much expected to us another tool to do the heavy lifting as I really don't want to implement any kind of fancy filtering, hence the deb822 format as in a Debian context that should be easy to deal with. This crude line-filtering is mostly there for times in which you don't want/can't use anything more powerful (like apt testcases where piping is hard™ compared to just calling a single command and performing (additional) tests on its exit status and output automatically). I will add some explicit mentioning of grep-dctrl and an example for good measure. Thanks for the quick feedback! Best regards David Kalnischkies
Attachment:
signature.asc
Description: Digital signature