Page MenuHomeFreeBSD

pkg(7): add an -r reponame option for bootstrap and add
ClosedPublic

Authored by kevans on Feb 7 2021, 6:57 PM.
Tags
None
Referenced Files
F102115218: D28524.id83503.diff
Thu, Nov 7, 7:32 PM
Unknown Object (File)
Sun, Nov 3, 1:34 PM
Unknown Object (File)
Mon, Oct 14, 7:27 PM
Unknown Object (File)
Sep 29 2024, 1:17 AM
Unknown Object (File)
Sep 28 2024, 12:37 PM
Unknown Object (File)
Sep 26 2024, 7:08 PM
Unknown Object (File)
Sep 24 2024, 6:07 PM
Unknown Object (File)
Sep 24 2024, 6:07 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36782
Build 33671: arc lint + arc unit

Event Timeline

kevans requested review of this revision.Feb 7 2021, 6:57 PM
usr.sbin/pkg/config.c
349

Why is it named requested_conf here ?

usr.sbin/pkg/config.c
349

No good reason, I'll rename it. :-)

This revision is now accepted and ready to land.Feb 8 2021, 10:08 AM