Actions
Story #3672
closedAs a user I can blacklist packages from being synced
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
3.0.0
Target Release - Python:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 42
Quarter:
Description
It would be useful if I could specify packages that should not be synced.
Why might I disinclude packages from a sync?
- Known security problems for some versions
- typo-squatting prevention/cleanup (like `requirements.txt`)
- I don't need the wheels for that type of linux distribution (probably should be a separate issue)
Blacklists should work alongside whitelists
Something like:
inventory = set(whitelist) - set(blacklist)
Ideally, the blacklist will use the same structure as whitelist, so the user could blacklist by name, by version, by version range, hash, etc.
Actions
Add blacklist, here exclude list, of packages not to install
Now packages are not only checked against a whitelist/include list but also against an exclude list when syncing.
fixes #3672 https://pulp.plan.io/issues/3672