summaryrefslogtreecommitdiffstats
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-08-19 01:12:59 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-19 01:12:59 +0200
commitc7c797f0863c41f1e7ef9e17b408dab84ef493e6 (patch)
tree562d0fbe1628b9ab2bd05f2b6b0a8966b6c722f7 /cron-jobs/sourceballs
parent49fb4d75ea83dca2ed4653e8454c478c1fd0555a (diff)
downloaddbscripts-c7c797f0863c41f1e7ef9e17b408dab84ef493e6.tar.gz
dbscripts-c7c797f0863c41f1e7ef9e17b408dab84ef493e6.tar.xz
Use db-functions file everywhere
This source the config file and gets us functions such as getpkgname which were duplicated elsewhere Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs14
1 files changed, 1 insertions, 13 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index a34ae2d..02ebc66 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -4,7 +4,7 @@ ftpbase="/srv/ftp"
srcbase="/srv/ftp/sources"
repos="core extra testing community"
-. $(dirname $0)/../config
+. "$(dirname $0)/../db-functions"
LOCKFILE="/tmp/.sourceball.lock"
@@ -30,18 +30,6 @@ trap ctrl_c 2
dirname="$(/bin/readlink -f $(/usr/bin/dirname $0))"
-getpkgname() {
- local tmp
-
- tmp=${1##*/}
- tmp=${tmp%$PKGEXT}
- for a in ${ARCHES[@]}; do
- tmp=${tmp%-$a}
- done
- echo ${tmp%-*-*}
-}
-
-
FAILED_PKGS=""
[ -e "$srcbase/errors.txt" ] && /bin/mv "$srcbase/errors.txt" "$srcbase/errors.txt.old"