[arch-dev-public] [PATCH 4/4] ftpdir-cleanup: lock repo before doing the cleanup

Allan McRae allan at archlinux.org
Wed Feb 24 23:36:13 EST 2010

On 25/02/10 11:36, Eric Bélanger wrote:
> This should fix the problem of the ftpdir-cleanup script removing the
> new package instead of the old one (FS#17058).  The script makes
> $LOCK_TRIAL attempts, each separated by $LOCK_DELAY seconds, in
> getting the repo lock. If the lock is unsuccessful, the cleanup is
> skipped for that particular repo.
> Signed-off-by: Eric Bélanger<snowmaniscool at gmail.com>
> BTW, I didn't really tested this except the while loop logic.

Somewhat of an aside...  How long does the repo cleanup script generally 
take to run?


More information about the arch-dev-public mailing list