Bugzilla – Bug 395115
Qt packager doesn't remember the repository selected to install from
Last modified: 2008-07-17 15:02:02 UTC
I had the very same version of MozillaFirefox-translations in DVD and HTTP repository. Selected the package for installation and switched the repository to install from to HTTP-based repo (they have both the very same priority "default"). Clicking on another package and then back to the MozillaFirefox-translations shows that the DVD repo is selected again instead of HTTP. When I selected it again (HTTP) and clicked [Accept] to install it, the HTTP source was used. So, is that just an UI problem?
Created attachment 218663 [details] YaST log
Created attachment 218664 [details] Package selected for installation
Created attachment 218665 [details] Selected another repository
Created attachment 218666 [details] Selected another package
Created attachment 218667 [details] Selected the previous package See that the VERSION tab shows the initial repository, not the one I selected before.
Of course, if there are different versions in each repository, the selected version/repository is diplayed correctly... But from user's point of view, the repository selected should remain.
Repositories are handled in libzypp and (to a very small extent) by the YCP code in yast2-packager (initializing / activating / deactivating etc. repositories). The UI just displays the data and allows you to change the status of packages.
I think we are all clear that the user interface will be always innocent of any strange behavior. The real issue here is solving the problem. I guess Selectable::candidate is not taking in count priorities, and that's all, or?
No. Once the UI explicitly selects one of the available packages as user candidate, it must not be reset. If e.g. the solver wants to select an other instance of this package, a conflict has to be created. If the UI does not reset the candidate to NULL (use default), the above screen shots indicate an error.
*** This bug has been marked as a duplicate of bug 384253 ***