Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out clutter files in SD PRs #234

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

HebaruSan
Copy link
Member

Motivation

After #233, I remembered that @linuxgurugamer had also submitted KSP-CKAN/NetKAN#5178, so I decided to mine it for ideas. It mentions automatic filter and filter_regexp property generation based on ZIP contents and special handling for Ships folders.

Changes

Now the ModAnalyzer scans the ZIP to see if any of its files match several common filters, which I determined by looking at all the filters currently present in the NetKAN repo. If so, the install stanza is modified to filter them out. This should take another small bit of work off the hands of maintainers.

Ships folders are not handled specially, because there's too much variation in how authors treat those folders to handle them automatically, and we have an inflator warning for that already anyway (see KSP-CKAN/CKAN#3207).

I'm planning to self-review this since it's mainly for me anyway.

@HebaruSan HebaruSan added Enhancement New feature or request SpaceDock Adder Receives indexing requests and generates PRs. labels Dec 3, 2021
@HebaruSan HebaruSan merged commit 5eb2695 into KSP-CKAN:master Dec 3, 2021
@HebaruSan HebaruSan deleted the feature/sd-analyzer-filters branch December 3, 2021 22:17
@techman83
Copy link
Member

Neat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request SpaceDock Adder Receives indexing requests and generates PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants