summaryrefslogtreecommitdiffstats
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
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"