From c7c797f0863c41f1e7ef9e17b408dab84ef493e6 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 18 Aug 2009 16:12:59 -0700 Subject: 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 --- cron-jobs/sourceballs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'cron-jobs/sourceballs') 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" -- cgit v1.2.3-24-g4f1b