Improve clean job on removing old packages

This MR modifies the cronjob removeolduploads.

Currently, when a packages is uploaded to the official archive, this cronjob will delete every versions regardless of the distribution. This behavior is problematic when packaging for backports and unstable for example. Upon acceptation from either of the distribution, the other version will be deleted.

The following change correct this behavior:

  • Keep package if other distribution or newer versions are still available

Currently, if a older version is present while a newer gets uploaded to the same distribution, it would not get deleted.

The following change correct this behavior:

  • Remove previous version matching distribution

Merge request reports

Loading