Bug 17979 - rpmdrake does not remember a set filter if "All" is selected in the View combo box
Summary: rpmdrake does not remember a set filter if "All" is selected in the View comb...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-13 12:23 CET by Angelo Naselli
Modified: 2016-03-14 18:38 CET (History)
0 users

See Also:
Source RPM:
CVE:
Status comment:


Attachments

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.

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