From 6ed6f4e6a482e913b01f5dc6d0b52575614742a7 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 22 Jul 2009 20:55:01 -0700 Subject: Use the top level config file for cron-jobs Source our config file, and use ARCHES from it Signed-off-by: Aaron Griffin --- cron-jobs/createFileLists | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cron-jobs/createFileLists') diff --git a/cron-jobs/createFileLists b/cron-jobs/createFileLists index 10520af..61cbc21 100755 --- a/cron-jobs/createFileLists +++ b/cron-jobs/createFileLists @@ -3,7 +3,8 @@ reposdir=/srv/ftp/ targetdir=$reposdir repos="core extra testing community" -arches="i686 x86_64" + +. $(dirname $0)/../config if [ -f /etc/makepkg.conf ]; then . /etc/makepkg.conf @@ -45,7 +46,7 @@ esac cd $reposdir for repo in $repos; do REPO_DB_FILE=${repo}.files.tar.${DB_COMPRESSION} - for arch in $arches; do + for arch in ${ARCHES[@]}; do repodir=${repo}/os/${arch}/ cached="no" -- cgit v1.2.3-2-g168b