#27 change 'filterlist' to 'imagelist', use productmd formats
Merged by tibbs. Opened by adamwill.
adamwill/quick-fedora-mirror imagefilter  into  master

Download 27.patch

As an alternative to filtering out known not-image file types,
just import the list of known image file types from productmd
and filter out anything not in that when creating the list for
fedfind. Now call it 'imagelist' rather than 'filterlist'.

The advantage of this is it gives us the smallest possible list
and we don't have to worry about the filterlist file sizes
suddenly growing because a large number of some new type of
file starts showing up in the compose process (this would make
fedfind runs suddenly use a lot more bandwidth, but otherwise
wouldn't be terribly visible, which is kinda bad).

The disadvantage is it introduces a dependency on productmd
which we'd have to ensure we always account for on the systems
where create-filelist is run, and keep up to date so we don't
miss new image types.

This is an alternative to https://pagure.io/quick-fedora-mirror/pull-request/26 ; I'm giving us choices here. Please pick which approach you prefer and merge it.

@kevin said he'd prefer this version. We've checked that the productmd constant is the same in 1.0 (which is in EPEL 7) and 1.2 (which is in Fedora).

rebased

Revised to still work (but with --imagelist disabled) if productmd is unavailable.

Pull-Request has been merged by tibbs

Metadata