split media filter for Mandriva and Mageia
|Assignee:||Samuel Verschelde||% Done:||
The media filter has lots of entries for Mageia, it could be split into :
- mediaroot: core, tainted, nonfree
- mediatype: release, updates, updates-testing, backports, backports_testing
It must be configurable in madbconf.yml: allow to choose which filters appear in the banner. All filters must be accepted in URL even if absent from banner. If this filter is present, configuration (madbconf.yml) must give a regexp rule to extract both parts of the media name, and a separator to combine the 2 parts into the media name. That rule will be used when adding a new media in madb.
Add 2 fields in the media table to store the values for each media if there's such a regexp, or let it null otherwise.
Drawbacks : can't do filters such as "all core media + non-free without backports", but is there really a use case for that?