Hi here is a consolidate webrev using Shawn's Publisher API
(http://cr.opensolaris.org/~swalker/pkg-5871/ ), along with my own
webinstall and repository changes.
You need to install this patch against rev 898:f5eab9e6f812
http://cr.opensolaris.org/~jmr/pm_webinstall_wip_mar4_540pm/
The PM Manage Repositories and Modify work fine allowing you to add new
repos, change mirrors and so on with the new API. If its https then the
appropriate fields are shown in Modify. Changes to URL, SSL keys and
Certs and mirrors apply when clicking Ok on the Modify dialog.
To test the webinstall, just build it and run:
pfexec packagemanager test.p5i <-- adds sunfree2 and contrib
pfexec packagemanager secure.p5i <-- will try to add extra so you can
see the secure repo dialog
When Shawn has a webrev with just the Publisher API changes we can split
out the Webinstaller and Reposiotry gui changes into a separate gui
webrev for review.
The only stub call left to replace in the code is in webinstall.py:
api_wrapper_parse_publisher_info(), which is currently generating a list
of stub publisher objects and package list tuples.
JR
jmr wrote:
Hi,
Here is a webrev of wip for the WebInstall support. It is using stub
api calls and data to demonstrate the functionality [see
src/gui/modules/webinstall.py: api_wrapper_parse_authority_info() and
ApiWrapperAuthorityInfo()].
It will consume a .p5i file from the command line or from a web site
which is registered to support the mimetype:
application/vnd.pkg5.info, to add a number of authorities and install
any packages associated with them.
It will be changed to use the new Authority (aka Publisher) API's as
soon as they are available. The UI has undergone review and been
demo'ed to interested parties.
http://cr.opensolaris.org/~jmr/pm_webinstall_wip_mar02_4pm/
#6352: Add MimeType support for adding Authorities and Packages via PM
Screen Shot: http://defect.opensolaris.org/bz/attachment.cgi?id=1449
JR
Instructions:
Build patch against the gate, tip at: 891:08ac4df01742:
Following steps will be handled automatically if installing
SUNWipkg-gui from an ips repo, to update the mimetypes:
pfexec update-mime-database /usr/share/mime
pfexec update-desktop-database
pfexec gtk-update-icon-cache /usr/share/icons/hicolor/
pfexec pkill nautilus
Start with this repo:
$ pkg authority
AUTHORITY URL
opensolaris.org (preferred) http://osol-re.sfbay.sun.com/
Test:
$ pfexec packagemanager secure.p5i
This will fail as the extras repo has an issue with sslv3, but shows
you the dialog that is brought up when adding a secure repo. Just
cancel out.
$ pfexec packagemanager test.p5i
This will add sunfree2 and contrib without prompting once you hit
Proceed, and then install some packages from opensolaris.org and sunfree2
Clean Up:
Just remove the packages from sunfree2 and unset the 2 repos added.
pfexec pkg uninstall pkg://sunfree2/IPSFWjoe
pfexec pkg uninstall pkg://sunfree2/IPSFWncur
pfexec pkg uninstall pkg:/SUNWfirefoxl10n-pl-PL
pkg:/SUNWthunderbirdl10n-pl-PL
pfexec pkg unset-authority sunfree2
pfexec pkg unset-authority contrib
To Change:
If you want to hack on the stub data just modify the installed
webinstall.py: api_wrapper_parse_authority_info():297
pfexec vi /usr/lib/python2.4/vendor-packages/pkg/gui/webinstall.py
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss