When all subpackages of a src.rpm are removed, the src.rpm should too. This is easy to detect (nothing remaining in repository built from that src.rpm) Reproducible: Steps to Reproduce:
Severity: normal => enhancement
CC: (none) => thierry.vignaud
@ sysadmin-bugs any news on this enhancement request?
CC: (none) => marja11
debug packages should also be removed.
CC: (none) => boklm
I think this can be done using a script in cron removing all source packages with no corresponding binary packages.
Blocks: (none) => 858
I had such scripts in my home on n4 which got wiped out. There is also some code in youri-check for that. The Missing check lists the ones where there are binary packages from newer version, I don't remember why it does not list the ones without binary packages but this should be trivial to add. I had http://svn.mandriva.com/viewvc/soft/build_system/distrib/cleaning/debugorphan?revision=269234&view=markup for removing / moving debug packages, this one can be simplified to only do the removing and be run in cron.
Created attachment 964 [details] Script listing packages to delete
Created attachment 965 [details] Log of the script on cauldron in 3 use cases This script can list: - binaries in a media without src.rpm (old binaries), it can be run on debug media too - src.rpm in a media with no associated binary rpm
Attachment 965 mime type: application/octet-stream => text/plain
CC: (none) => jquelin
Status: NEW => ASSIGNED
This script has a problem, it only checks one arch so it will report a src.rpm as not having binaries if it is not built for that arch
CC: boklm => (none)