freedomofpress / securedrop-builder

Packaging logic for building SecureDrop-related Debian packages
GNU General Public License v3.0
7 stars 11 forks source link

Cleanup old RPM nightlies too #475

Closed legoktm closed 10 months ago

legoktm commented 11 months ago

Status

Ready for review, but needs https://github.com/freedomofpress/securedrop-yum-test/pull/51 to be merged first.

Description

Extend the clean-old-packages script so it works for RPMs too. We use the Python RPM bindings to extract package name and version and then shell out to rpmdev-vercmp to sort them.

The behavior is now the same as the deb cleanup, when new nightly packages are pushed, it'll clean up old nightlies in the same commit. RC packages (in the f32 component) will be cleaned up in a separate commit, if necessary.

Fixes #435.