pkg: authority subcommands broken (traceback)
The OI wiki still has snippets that reference
I am assuming that the wiki is outdated and should be telling people to use
authority commands do still exist, they are just broken, e.g.:
root@openindiana:~# pkg authority Traceback (most recent call last): File "/usr/bin/pkg", line 5968, in handle_errors __ret = func(*args, **kwargs) File "/usr/bin/pkg", line 5870, in main_func return func(api_inst, pargs) TypeError: publisher_list() missing 5 required positional arguments: 'pargs', 'omit_headers', 'preferred_only', 'inc_disabled', and 'output_format' pkg: This is an internal error in pkg(5) version da4493e2. Please log a Service Request about this issue including the information above and this message.
TypeError is given for
Before I realized that
set-authority was (at least at one point) intended to be removed, I tried wiring it up in
pkg/client/pkgdefs.py and it seemed to fix the traceback.
Should I send a PR with those changes? Or should the
authority commands just go away once and for all? (Happy to send a PR for that, too, I'm just not sure which direction to go.)