HomeFreeBSD

pkg: allow multiple add arguments again

Description

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)

Details

Provenance
kevansAuthored on Feb 18 2021, 3:41 AM
Parents
rGe70e1b132ee8: malloc(9): Document/complete aligned variants
Branches
Unknown
Tags
Unknown