Checklist
Suggestion
Would there be interest in adding an opt-in gitignore-style mode for flatpak-builder's cleanup patterns?
The current syntax only supports positive removal patterns, so it is not possible to remove everything under a directory while keeping one specific file. For example:
cleanup-mode: gitignore
cleanup:
- /bin/*
- '!/bin/avahi-browse'
The proposed mode would preserve the current behavior by default and support ordered rules, negation, escaping, directory matching, character classes, and ** patterns.
This came up while packaging Kodi, where avahi-browse must be retained while other Avahi binaries are removed. Would this feature be useful more broadly, and would the proposed opt-in syntax be acceptable?
flathub/tv.kodi.Kodi#784 (comment)
Checklist
Suggestion
Would there be interest in adding an opt-in gitignore-style mode for
flatpak-builder'scleanuppatterns?The current syntax only supports positive removal patterns, so it is not possible to remove everything under a directory while keeping one specific file. For example:
The proposed mode would preserve the current behavior by default and support ordered rules, negation, escaping, directory matching, character classes, and
**patterns.This came up while packaging Kodi, where
avahi-browsemust be retained while other Avahi binaries are removed. Would this feature be useful more broadly, and would the proposed opt-in syntax be acceptable?flathub/tv.kodi.Kodi#784 (comment)