fix: prune RPM metadata when a local file is evicted #100
Reference in New Issue
Block a user
Delete Branch "benvin/rpm-metadata-evict-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #99.
Why
Evicting or deleting a local RPM removed the `local_files` row but left its `rpm_metadata` behind. Since generated repodata is built from `rpm_metadata`, `primary.xml` kept advertising a package that no longer exists, producing 404s for clients that tried to fetch it.
Changes
cbf45bfee1to808015f6bb