Opened 7 years ago
Last modified 14 months ago
#56181 new enhancement
Periodically delete obsolete packages
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | admin@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | server/hosting | Version: | |
Keywords: | Cc: | ||
Port: |
Description
Obsolete packages should be deleted from our server periodically. Josh wrote scripts to do that:
- macports-infrastructure/jobs/current_versions.tcl
- macports-infrastructure/jobs/delete_old_archives.py
Usage:
./current_versions.tcl > current_versions.txt ./delete_old_archives.py /path/to/packages/ current_versions.txt > old_archives.txt 2> old_archives.stats.txt xargs rm -fv < old_archives.txt
But this requires MacPorts base and an up-to-date ports tree.
We could create another Buildbot scheduler, which runs periodically at whatever interval we desire. We could use mpbb
, as in the other schedulers, to keep a separate copy of MacPorts base and a ports tree updated, and then run the above scripts.
Note: See
TracTickets for help on using
tickets.
Since a few months, this is now happening automatically, once a week, every Sunday, right after mprsyncup runs. The scripts are customized to account for possibly different port versions on each OS version.