Opened 9 years ago

Last modified 9 years ago

#12457 assigned enhancement

Package problems dialogue window

Reported by: luroh Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Servers/package_daemon Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Trying to install NetSurf in hrev49805 will present the user with the attached dialogue window, which I'm guessing could come across as rather unintelligible to the average user. (The problem stems from an updated openssl package and has since been fixed by uploading a rebuild of the netsurf package).

  1. Both the window title and the informational text below it indicate that there are several problems instead of just one.
  2. Solution 1 (note that there is no Solution 2, so why enumerate it?) suggests not to install "providing netsurf", which may look a bit cryptic.
  3. The option selected by default is to ignore problem for now, but the only available options are to either press the Cancel button or to close the dialogue window.
  4. Although selecting Solution 1 will enable the Retry button, pressing it will seemingly just close the dialogue window and leave the NetSurf package in a pending state.

Attachments (1)

package_problems_hrev49805.png (71.7 KB ) - added by luroh 9 years ago.

Download all attachments as: .zip

Change History (5)

by luroh, 9 years ago

comment:1 by diver, 9 years ago

Also, the scrollview is not correctly aligned :)

comment:2 by stippi, 9 years ago

Component: Applications/HaikuDepotServers/package_daemon
Owner: changed from stippi to bonefish

This window is actually from the package daemon. (I think.)

in reply to:  description comment:3 by bonefish, 9 years ago

Replying to luroh:

  1. Solution 1 (note that there is no Solution 2, so why enumerate it?) suggests not to install "providing netsurf", which may look a bit cryptic.

Unfortunately the string stems from libsolv, which makes changing it ugly (parse the string and replace it) and/or non-trivial.

That the string is shown like that at all suggests that HaikuDepot did the equivalent of pkgman install netsurf, i.e. requesting to install something that provides "netsurf". Since it should know the packages, it could do better by actually specifying to install the selected package that it got from the repository. That should cause the string returned by libsolv to change to the qualified package name instead.

  1. The option selected by default is to ignore problem for now, but the only available options are to either press the Cancel button or to close the dialogue window.

Ignoring a problem is not a final solution. Before anything can be installed at all, every problem must be solved. The ignore option is just a temporary measure, so that one can retry after selecting solutions for a subset of problems and see, if/how that changes the options for the remaining problems. In each iteration at least for one problem a solution must be selected, since otherwise no progress would be made and one would just get exactly the same window again.

So, consequently, the ignore option can be omitted when only one problem exists. If that one problem has only one possible solution, it doesn't make sense to ask the user to choose an option, so the dialog should just ask whether to go with that solution or cancel. If, as in this case, the solution is not to install the requested package, the dialog should ideally just report the problem without any choices for the user at all.

  1. Although selecting Solution 1 will enable the Retry button, pressing it will seemingly just close the dialogue window and leave the NetSurf package in a pending state.

That sounds like a HaikuDepot issue. The package daemon should just determine that it has neither packages to install nor to uninstall and report the transaction as finished to the client (HaikuDepot).

comment:4 by bonefish, 9 years ago

Owner: changed from bonefish to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.