Wait ... there are still a few things to improve in ftpdir-cleanup.

For instance if one of the out-of-date packages in $DELETEFILES is a
symlink to an "any" file, that symlink will be removed, but not the
original file.

Also, I would prefer to have that script take care of all arches at
once, like the new db-update script does. That's the easiest way to
handle the above situation:
if an "any" package is outdated for both arches, then remove both
symlinks AND the actual file. But if it is only outdated for one arch,
then remove that symlink but keep the original file.

I have rewritten the ftp-cleanup script this morning. I'm going to
revise it now and should submit my patches very soon.

  

Here they are. Looks like it is a lot of changes, but as I noted in the commit message,
it really amounts to reshuffling the code in order to have a for loop for each ARCH,
followed by a scan of the "any" directory.

Hope you like it ;)

F