shortcut for editing a mirror's filter ?
aptly mirror edit -filter="a" -filter-with-deps somemirror
when i want to add package b
aptly mirror edit -filter="a | b" -filter-with-deps somemirror
but if i don't remember that the filter is a , and just edit the filter to b
aptly mirror edit -filter="b" -filter-with-deps somemirror
it seems that the a package is removed.
so ,what if add some shutcut for editing a mirror's filter, like add filter b or remove filter b.
aptly mirror edit -filter-add="b" -filter-with-deps somemirror
aptly mirror edit -filter-remove="b" -filter-with-deps somemirror
I tried this but we have a complexity issue here. It's not that hard to add a query, but it's rather difficult to remove one without breaking the query itself and ensuring that we keep the rest of the query working as intended. So I thought maybe it'd make sense to just switch to saving a list of filters instead of just one. That way we can just combine them when needed and add and remove queries as required. The problem with that would be that we probably need to change the database.
@randombenj What do you think?