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

Reply via email to