Bug 17979

Summary: rpmdrake does not remember a set filter if "All" is selected in the View combo box
Product: Mageia Reporter: Angelo Naselli <anaselli>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Angelo Naselli 2016-03-13 12:23:44 CET
Description of problem:
If view "All" is selected filter is always restored to "All" every time rpmdrake
is restarted, despite of the configuration file has correctly saved the old value.

This problem is also in old mageia releases.

I suspect that rpmdrake code has some old checks:
# handle migrating config file from rpmdrake <= 4.9
if (exists $filters{$default_list_mode}) {
    $filter->[0] = $default_list_mode;
    $default_list_mode = 'all';
}

but $default_list_mode is correctly set to all and so $filters{$default_list_mode}
does exists, overriding $filter->[0].

If the comment is right... maybe that's not needed any more...
Comment 1 Rémi Verschelde 2016-03-14 17:11:03 CET
Assigning to Thierry.

@Angelo: Is this meant as a follow-up on bug 13769?

Assignee: bugsquad => thierry.vignaud

Comment 2 Angelo Naselli 2016-03-14 18:38:35 CET
@Remi, no they are different problems. In MageiaUpdate you can select all, but to remove the selection you need to push select all again (if ever works) that is bug #13769. Here i found that changing the filter to "installed" or "not installed" to show all installed or not installed packages of the group inside a "show all groups" has the side effect to restore to show all after restarting rpmdrake. If it is not clear i could provide a snapshot with the comboboxes i mean.