On Thu, Feb 14, 2019 at 03:30:47PM +0100, Armin Beširovi�? wrote: > >Synopsis: pkg_info -Q uses only first URL in PKG_PATH > >Category: package management > >Environment: > System : OpenBSD 6.4 > Details : OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT > 2018 > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > Using pkg_info with a PKG_PATH that has more than one URL separated > by a colon will only search the first URL. > >How-To-Repeat: > > PKG_PATH=https://stable.mtier.org/updates/6.4/amd64:https://cdn.openbsd.org/pub/OpenBSD/6.4/packages/amd64 > pkg_info -Q git > It will print out only gitea from the mtier repo. > >Fix: >possible pkg_info should search all URLs sequentially. I'm not sure >how to handle the case where a package is in both repos but printing out just >the first would be fine I guess?
All pkg tools work similarly to ld.so, which is to say that stopping at the first directory that matches is not a bug, it's a feature. It could be argued that adding an option that would do things differently for pkg_info would make sense, but this still requires specific code instead of sharing things. There are ways more urgent things to do with the tool. Not a bug. New feature unlikely to happen in the near future.
