summaryrefslogtreecommitdiff
path: root/cron-jobs/update-web-db
AgeCommit message (Collapse)Author
2016-04-17Consistently use "$(dirname "$(readlink -e "$0")")"Luke Shumaker
This does correct handling of - executing a program by symlink - any weird characters in the full path - I'm sure there's another case I thought about when I originally did this.
2016-04-16Use printf-formatters instead of string interpolation on msg, error, etc.Luke Shumaker
2016-04-16Fix quoting around variables, especially arrays.Luke Shumaker
Other than pure quoting, this involved: - swapping */@ for array access in a few places - fiddling with printf in a pipeline - replacing `$(echo ${array[@]})` with `${array[*]}` - replacing `echo $(...)` with `...` When searching for these things, I used the command: grep -Prn --exclude-dir=.git '(?<!["=]|\[\[ |\[\[ -[zn] )\$(?!{?#|\(|\? )' and ignored a bunch of false positives.
2012-04-29Source the config before the functions as the latter references the formerPierre Schmitz
2011-12-19Avoid calls to basenamePierre Schmitz
2011-01-08archweb update: source virtualenv if it existsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-11-25update-web-db: Lock db and scriptPierre Schmitz
* usage of db-functions * Lock the db and work on a copy to avoid long lock times * Lock the script itself to avoid multiple calls * Adjust to coding style to other dbscripts
2010-10-11Fix missing output redirectionDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-16Move output redirectionDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-12Add multilib-testing to web update scriptDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25update-web-db: flip the arch/repo loopsDan McGee
This will really make sure [core] packages flow to the top of the list, regardless of architecture. They should anyway, but anything that was only updated in the first architecture updated could get artificially pushed down before. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25update-web-db: reformat to coding styleDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25Fix a few issues with update-web-dbDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25Add update-web-db cronjobDan McGee
This has been untracked by version control for a while on gerolde in both the cron-jobs directory and in /etc/cron.hourly/. Add it here so we can make changes and know what is going on. This is an improved script over what we currently have. It is one script instead of two, and it does things a little smarter with the logging. Signed-off-by: Dan McGee <dan@archlinux.org>