Bug 16906 - Cherry-picking broken when sorting updates by version number in drakrpm-update
Summary: Cherry-picking broken when sorting updates by version number in drakrpm-update
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High major
Target Milestone: Mageia 7
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA5TOO MGA6TOO
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2015-10-05 09:53 CEST by Rémi Verschelde
Modified: 2016-11-10 10:36 CET (History)
3 users (show)

See Also:
Source RPM: rpmdrake-6.20-1.mga5
CVE:
Status comment:


Attachments

Description Rémi Verschelde 2015-10-05 09:53:14 CEST
I think I've had this bug since at least Mageia 4, maybe earlier (could be a fallback of the GTK+3 port).

When sorting packages by version in drakrpm-update / MageiaUpdate, cherry-picking does not work reliably. If you click on a specific package that has dependencies to install, it will notify you about it, but clicking OK won't select the mentioned dependencies.

If you manage in the end to select all packages that you want to cherry-pick, clicking install will propose only a subset of what you actually selected (and maybe even random other updates that you did not select IIRC).

Maybe the backend does not know that the list is sorted by version, and tries to match positions in the list with the list sorted by name or something like that?


To reproduce, in current mga5:
1. Activate and update testing repos, and mark them as update media (drakrpm-editmedia)
2. Start MageiaUpdate
3. Unselect everything
4. Click on "Version" to sort by versions
5. Try to select all packages of a given version and install them (e.g. systemd 217 in current mga5).

Reproducible: 

Steps to Reproduce:
Comment 1 Rémi Verschelde 2015-10-05 09:55:35 CEST
I'm assuming that the issue is also valid in Cauldron as there haven't been many changes to rpmdrake in git since version 6.20.

Setting as a release_blocker for now to make sure we try to fix it for Mageia 6.

Keywords: (none) => USABILITY
Priority: Normal => release_blocker
Version: 5 => Cauldron
Blocks: (none) => 15527
Whiteboard: (none) => MGA5TOO

Comment 2 David Walser 2015-10-13 23:18:39 CEST
Really there is a fundamental flaw in the design of MageiaUpdate, as it should not allow you to cherry pick some subpackages but not others that are built from the same SRPM.  The checkboxes it should show you should only be for the *SRPM* names of the updateable packages, allowing you to select or deselect those, and for the selected ones, it'll upgrade all subpackages built from that selected package that are installed.  If deemed desirable, when you click on one of the SRPM rows, it could in the interface display a list of the actual RPM names it will be updating if chosen.
Comment 3 Jüri Ivask 2015-11-09 09:09:51 CET
Yes, it is valid in Cauldron also.
When you for example unselect some package for updating a message is displayed that it's dependencies are unselected too, but this is not reflected by removing their tickmarks - they remain displayed as selected for update.

CC: (none) => jyri2000

Comment 4 Marja Van Waes 2016-07-12 17:47:39 CEST
Moving to a mga7 tracker (it is still allowed to fix this bug now, though ;-) )

CC: (none) => marja11
Blocks: 15527 => 18932

Comment 5 Samuel Verschelde 2016-09-12 16:49:49 CEST
Not a release blocker since it can be fixed afterwards, although would be nice to get finally fixed.

Priority: release_blocker => High
CC: (none) => thierry.vignaud
Assignee: thierry.vignaud => mageiatools

Samuel Verschelde 2016-10-10 23:25:09 CEST

Target Milestone: --- => Mageia 7
Whiteboard: MGA5TOO => MGA5TOO MGA6TOO

Samuel Verschelde 2016-11-10 10:36:01 CET

Blocks: 18932 => (none)


Note You need to log in before you can comment on or make changes to this bug.