Greetings,
The following webrev contains fixes and enhancements for the following
issues:
5871 publisher apis desired
3682 pkg publisher should show mirrors in default listing
5071 provide direct way to change publisher to not use certificate
6843 problems with empty string for ssl_cert, ssl_key
6897 "authority" should be "publisher"
7046 client intent is not sent if same api object used for multiple
operations / reasons
====================================================================
I need at least two individuals to commit to reviewing this. Please
respond *before* reviewing if you can commit to reviewing this.
====================================================================
====================================================================
webrev
====================================================================
http://cr.opensolaris.org/~swalker/pkg-5871/
====================================================================
Change Summary
====================================================================
* A full set of authority management interfaces and client history
logging interfaces has been added.
* All references to 'authority' (in code, commands, docs, etc.) have
been replaced with 'publisher' (excluding the cfg_cache file for
compatibility purposes and because an overhaul of the cfg_cache file
format is coming soon).
* client intent is now properly generated when the same api object is
used for multiple operations for the same fmri(s)
* The output of the pkg publisher (aka authority) command has been
changed to include mirrors in the default output per bug 3682
* The cli has been changed to use the new publisher api everywhere possible.
* ssl_cert and ssl_key will no longer be allowed unless the protocol
scheme of the publisher's origin is https.
* The client api is now dependent on the simplejson module provided by
SUNWpython24-simplejson. I did not know if I should update an importer
file somewhere or which one. Suggestions welcome.
====================================================================
Notes
====================================================================
* I've posted a separate webrev just for the GUI team with all of its
necessary changes (excluding repository management which jmr and michal
are working on). [1]
* see "pydoc pkg.client.publisher" for a description of Publishers and
Repositories (including attributes, methods, etc.).
* Compatibility with the last version of the cfg_cache file format has
been maintained
* See doc/client_api_versions.txt for a list of new api methods and
their usage.
* The new client api is incompatible with all previous clients.
* Sample p5i file can be found in src/tests/cli/t_api.py.
* cli interfaces for editing the expanded set of publisher and
repository information has been intentionally omitted in the interest of
time and changeset size reduction.
* I've verified that an older version of the pkg client (from build 106
as an example) can still read the cfg_cache despite the addition of new
option data.
Cheers,
--
Shawn Walker
[1] http://cr.opensolaris.org/~swalker/pkg-5197/
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss