]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pkg: allow multiple add arguments again
authorKyle Evans <kevans@FreeBSD.org>
Thu, 18 Feb 2021 03:41:53 +0000 (21:41 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 27 Aug 2021 01:10:58 +0000 (20:10 -0500)
commit6cd271fbc243b9b2c6e657cd7772e3bafa210be0
tree5b6e7b4d8ace3c8e2ad0417eb5e655456e85bae3
parentb3e2d70a7f301d21f38e38983677989dc88a6c3f
pkg: allow multiple add arguments again

While pkg(7) add only handles a single 'add' argument, pkg-add(8) fully
handles multiple arguments.

Stop rejecting it, just turn off local-bootstrap mode and proceed to
remote bootstrap if we need it.

While we're here, check if the first argument to pkg add is even a pkg
package. If it's not, also do remote bootstrap instead. Future work
could improve this altogether by picking out a pkg package out of many
and local bootstrap then pass the rest through to the newly installed
pkg.

(cherry picked from commit 40b9f924b189ce8fa871db600b4abc99b03c6a65)
usr.sbin/pkg/pkg.c