summaryrefslogtreecommitdiffstats
path: root/cron-jobs/createFileLists
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/createFileLists
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/createFileLists')
-rwxr-xr-xcron-jobs/createFileLists13
1 files changed, 1 insertions, 12 deletions
diff --git a/cron-jobs/createFileLists b/cron-jobs/createFileLists
index 4ad4c22..345f9aa 100755
--- a/cron-jobs/createFileLists
+++ b/cron-jobs/createFileLists
@@ -4,7 +4,7 @@ reposdir=/srv/ftp/
targetdir=$reposdir
repos="core extra testing community"
-. $(dirname $0)/../config
+. "$(dirname $0)/../db-functions"
if [ -f "/tmp/createFileList.lock" ]; then
echo "Error: createFileList allready in progress."
@@ -18,17 +18,6 @@ CACHEDIR=$(mktemp -d /tmp/createFileList.XXXXXX) || exit 1
#adjust the nice level to run at a lower priority
/usr/bin/renice +10 -p $$ > /dev/null
-getpkgname() {
- local tmp
-
- tmp=${1##*/}
- tmp=${tmp%$PKGEXT}
- tmp=${tmp%-i686}
- tmp=${tmp%-x86_64}
- tmp=${tmp%-any}
- echo $tmp
-}
-
case "${DBEXT}" in
*.gz) TAR_OPT="z" ;;
*.bz2) TAR_OPT="j" ;;