On Fri, Jun 17, 2016 at 04:02:36PM +0200, Marc Espie wrote: > I was waiting for snapshots to come up with the new stuff, but it > looks like amd64 will be a bit late. Someone is still hiking in > the mountains... > > > A week ago or so, I committed support for some disambiguating > filter in pkg_add. > > This means that you can now simply install packages for ports which > have several versions in the tree without having to know the exact > version. > > For instance, > > pkg_add python%2.7 > will install a python from the lang/python/2.7 branch. >
I am the maintainer of the OpenBSD package handling module in ansible and have for a long time had a request to support more relaxed package names. Until now the suggested solution has been to use the pkg_add -z invocation. My main problem with using pkg_add -z has been that the package names it allows can not be used with "pkg_info -e" or "pkg_delete". I notice that pkg_delete does understand "%" which is very nice: === # pkg_delete python%2.7 python-2.7.11p1: ok [...] === However, "pkg_info -e" does not understand it: === # pkg_info -e python%2.7 Invalid spec: python%2.7 === I use pkg_info -e to check if a requested package is installed or not prior to attempting to install/remove it. The reason for doing this is that it is much faster than just blindly trying to install a package, and does not hammer mirrors needlessly. Are there any plans to teach pkg_info -e about "%"? Is it even possible? The full ansible upstream discussion can be found here if anyone is interested: https://github.com/ansible/ansible-modules-extras/issues/97 Anyway, thanks for working on this, and thanks to landry@ for mentioning this was in the works :). -- Patrik Lundin