Re: pkg_info: print used repos

2015-06-24 Thread Marc Espie
On Tue, Jun 23, 2015 at 08:53:15PM -0600, Theo de Raadt wrote: - $state-handle_options('cCdfF:hIKLmPQ:qr:RsSUe:E:Ml:aAt', + $state-handle_options('cCdfF:hIKLmpPQ:qr:RsSUe:E:Ml:aAt', Starting to look a lot like ls. What a coincidence. It's used to list things. So is ls.

Re: pkg_info: print used repos

2015-06-24 Thread Marc Espie
On Wed, Jun 24, 2015 at 11:59:41AM +0200, ludovic coues wrote: 2015-06-24 11:40 GMT+02:00 Marc Espie es...@nerim.net: On Tue, Jun 23, 2015 at 08:53:15PM -0600, Theo de Raadt wrote: - $state-handle_options('cCdfF:hIKLmPQ:qr:RsSUe:E:Ml:aAt', +

Re: pkg_info: print used repos

2015-06-24 Thread ludovic coues
2015-06-24 11:40 GMT+02:00 Marc Espie es...@nerim.net: On Tue, Jun 23, 2015 at 08:53:15PM -0600, Theo de Raadt wrote: - $state-handle_options('cCdfF:hIKLmPQ:qr:RsSUe:E:Ml:aAt', + $state-handle_options('cCdfF:hIKLmpPQ:qr:RsSUe:E:Ml:aAt', Starting to look a lot like ls. What a

pkg_info: print used repos

2015-06-23 Thread Jean-Philippe Ouellet
This adds a -p option to pkg_info to show the PackageRepositorys being used. Inspired by trying to parse /etc/pkg.conf with some awk and quickly realized that was the wrong way to solve my problem. I then wrote some perl that reached into OpenBSD:: internals, but concluded it'd be much cleaner