On 6/05/2009, at 9:11 PM, jmr wrote:
8593 Webinstall against disabled repositories gives poor error message
- With a disabled repo a user clicking on a p5i file sees the list of Publishers and packages to add, hits proceeds to then be informed that there are duplicate repositories and no packages or other repos from this p5i file can be added.

Repository Error: "A publisher with the same name or alias as '<publisher>' already exists."

This is correct but will make little sense to the user. If a user installs the occasional package from a repo and then disables it, only to use another p5i file for something in this repo weeks or months later they will get this error message and be more than a little confused.

The fix is a simple one using the existing Publisher api to see if the Repository which is not registered is actually there but disabled, then the user is warned with an appropriate error as soon as they click the p5i file that this Publisher is disabled and not available for any package operations.

Repository Error: "Publisher '<publisher>' is disabled and cannot be used for packaging operations."

All other repos and packages will then be added as expected. Its been tested with single and multiple repos both disabled, enabled and not registered, all work as expected.

Webrev: 
http://cr.opensolaris.org/~jmr/pm_8593_webinstall_disabled_repo_5May_2pm/

I know some of these messages are being created from the API and exceptions raised, but it would be nice from a user experience to tell the user how to continue - perhaps that's a case of providing a button with 'Enable repository and install package', or telling them how they go about changing it themselves.


Glynn

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to