[arch-dev-public] Time to go forward with arch=any?

Firmicus Firmicus at gmx.net
Tue Jul 21 08:12:54 EDT 2009


>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090721/0a144099/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-remove-trailing-slash-from-ftppath-_any.patch
Type: text/x-patch
Size: 1154 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090721/0a144099/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Refactor-ftpdir-cleanup-to-handle-all-arches.patch
Type: text/x-patch
Size: 10336 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090721/0a144099/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Bugfix-make-TMPDIR-within-the-for-loop.patch
Type: text/x-patch
Size: 1079 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090721/0a144099/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Very-minor-additions.patch
Type: text/x-patch
Size: 1160 bytes
Desc: not available
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090721/0a144099/attachment-0003.bin>


More information about the arch-dev-public mailing list