pulp / pulp_python

A Pulp plugin to support Python packages
GNU General Public License v2.0
35 stars 74 forks source link

package_types remote filter breaks other filters #691

Closed gerrod3 closed 3 weeks ago

gerrod3 commented 3 weeks ago

When you specify the package_types filter you end up breaking the other filters specified causing nothing to be filtered. The reason is because we don't properly add the filter to the enabled filters when creating the underlying Bandersnatch config object: https://github.com/pulp/pulp_python/blob/3c61037df6afc5e93e1454c8fd5c78efcdd658b1/pulp_python/app/tasks/sync.py#L84-L86 When adding to the enabled list you need to have a trailing newline "\n" as that is how the config separates the filters.