summaryrefslogtreecommitdiffstats
path: root/cron-jobs/ftpdir-cleanup
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20ftpdir-cleanup: only search for linked packages in actual reposPierre Schmitz1-1/+3
2010-06-20Replace PKGPOOL_DIR by a function callPierre Schmitz1-1/+1
The package pool dir depends on the host; so we solve this similar to get_repos_for_host() Note: There is no "os" subdir for the package pool.
2010-05-03Add PKGPOOL_DIR config variableAaron Griffin1-1/+1
This is a relative var, descendent from FTP_BASE. We do this because we also need a relative path to the package pool dir
2010-04-28ftpdir-cleanup: use 'find' for symlink detectionAaron Griffin1-13/+3
This gets rid of a bash loop for link detection
2010-04-28ftpdir-cleanup: Fix cleanup of package poolAaron Griffin1-1/+1
2010-04-28Change ftpdir-cleanup scripts for package poolingAaron Griffin1-1/+34
* The per repo script now simply removes files as they should all be symlinks at this time * The cron job script will do the extra job of checking the global pool. If there are no more symlinks, move the pooled package Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-14Add new get_repos_for_host() functionDan McGee1-4/+4
And use it. This allows us to have server-specific behavior in our scripts without further patching, and it also allows us to simplify some of our scripts a fair amount. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-19Use db-functions file everywhereAaron Griffin1-1/+1
This source the config file and gets us functions such as getpkgname which were duplicated elsewhere Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-03Remove community from stock ftpdir-cleanupAaron Griffin1-1/+1
community repo is cleaned up on a different machine Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Refactor ftpdir-cleanup to handle all archesFrancois Charette1-5/+2
This may look like a rather large patch, but the changes are mostly a reshuffling of the code to loop over all arches first, and then handle the arch-indep packages. The cronjob has been changed accordingly. Added new category DELETESYMLINKS, which are deleted instead of being moved to package-cleanup. I have also fixed the arch-specific issue with the ftppath, using parameters in config instead. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21ftpdir-cleanup: Don't scan 'any' dirsAaron Griffin1-1/+1
These are handled automatically when scanning other architecutres Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-17ftpdir-cleanup: Add configurable destdirAaron Griffin1-1/+4
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-17Add community and 'any' arch to ftp cleanupAaron Griffin1-3/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Drop unstable from processing in scriptsDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-10cron-jobs: use renice to lower job priorityDan McGee1-0/+3
Lower the job priority of our cron jobs so they don't interfere with other more important things on the server. None of these are very CPU intensive, but priority for I/O operations should go elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Fix an error message copy/paste errorAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-29Add a real cron script to cycle over all reposAaron Griffin1-0/+35
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-29Move ftpdir-cleanup to misc-scriptsAaron Griffin1-116/+0
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-29Fix EXTRAFILES in ftpdir-cleanupThomas Bächler1-4/+6
Signed-off-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-22Git tells me this file was modifedAaron Griffin1-2/+2
I don't know what changed, but I am committing to check! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-21Switch EXTRAFILES test to be more accurateAaron Griffin1-14/+19
New test suggested by Thomas via cleanup2.sh script Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-15More cron job cleanup and fixesAaron Griffin1-31/+80
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Moving some files around, organizationalAaron Griffin1-0/+60
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>