]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pkg(7): add an -r reponame option for bootstrap and add
authorKyle Evans <kevans@FreeBSD.org>
Fri, 12 Feb 2021 00:58:26 +0000 (18:58 -0600)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 5 May 2021 08:17:31 +0000 (10:17 +0200)
commit15ed3e7d70fc13273271f0fe454dc6d43bc6de6a
tree212be323e9e81caf4c220ae428a93c2fc2ad49ab
parentc669cd841847766952492eff0566210d35ce93f9
pkg(7): add an -r reponame option for bootstrap and add

This is limited to bootstrap/add because some real pkg(8) commands
have -r flags with an incompatible meaning/usage, e.g., pkg-audit.
pkg(7) will still commence the search as it has, but it will ignore any
repo objects without the given name so that overrides and whatnot still
work as expected.

The use of it for add is noted in the manpage; notably, that the
signature config for that repository will be used over global config if
it's specified. i.e., pkg(7) should assume that the given pkg did come
from that repository and treat it appropriately.

Reviewed by: bapt, manu
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28524
usr.sbin/pkg/config.c
usr.sbin/pkg/config.h
usr.sbin/pkg/pkg.7
usr.sbin/pkg/pkg.c