On Tue, Jul 21, 2009 at 1:03 PM, Firmicus<Firmicus@gmx.net> wrote:
Hope you like it ;)
Applied and pulled new changes to /arch-new
Magnifico maestro!
[francois@gerolde ~]$ cd /arch-new/misc-scripts/ [francois@gerolde misc-scripts]$ ./ftpdir-cleanup testing /srv/package-cleanup Restoring missing 'any' symlink: mkinitcpio-0.5.26-1-any.pkg.tar.gz Restoring missing 'any' symlink: texlive-latex3-2009.14222-1-any.pkg.tar.gz Restoring missing 'any' symlink: texlive-science-2009.13945-1-any.pkg.tar.gz Scan complete for testing (i686) at /srv/ftp/testing/os/i686 (nothing to do for i686) Restoring missing 'any' symlink: mkinitcpio-0.5.26-1-any.pkg.tar.gz Restoring missing 'any' symlink: texlive-latex3-2009.14222-1-any.pkg.tar.gz Restoring missing 'any' symlink: texlive-science-2009.13945-1-any.pkg.tar.gz Scan complete for testing (x86_64) at /srv/ftp/testing/os/x86_64 (nothing to do for x86_64) Checking arch-independent files...
Yay, it works!
I have also tested other scenarios at home on a custom repo (extra file, out-of-date file, etc) without any glitch.
Unless someone objects, I guess you can now update the cronjob for ftpdir-cleanup.
Ok, one question - if you run this on core or extra.... does it work? That's how I nearly blew up core (thankfully, you can just cp the packages out of package-cleanup)