Opened 6 years ago

Last modified 6 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:

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.

Change History (1)

comment:1 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

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.

Note: See TracTickets for help on using tickets.