From bba8c33a039ec4d1e1d13f88304ba0aeb754b03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Fri, 22 Apr 2011 00:30:43 -0700 Subject: Midnight fix --- repo-update | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'repo-update') diff --git a/repo-update b/repo-update index 697e188..88ddda3 100755 --- a/repo-update +++ b/repo-update @@ -1,12 +1,12 @@ #!/bin/bash # -*- coding: utf-8 -*- -source config -source local_config -source libremessages +source $(dirname $0)/config +source $(dirname $0)/local_config +source $(dirname $0)/libremessages for repo in ${ARCHREPOS[@]}; do - for arch in 'i686' 'x86_64' 'any'; do + for arch in ${ARCHARCHES[@]} 'any'; do msg "Syncing ${repo} ${arch}" # makes a file containing rsync output for filter.py ${rsync_list_command} \ @@ -27,7 +27,7 @@ for repo in ${ARCHREPOS[@]}; do rsync://${mirror}/${mirrorpath}/${repo}/os/${arch}/ \ ${repodir}/staging/${repo}/ done - for arch in 'i686' 'x86_64'; do + for arch in ${ARCHARCHES[@]}; do msg "Cleaning $repo $arch" # if there is a db in repo (db is created on rsync) if [ -r ${repodir}/staging/${repo}/os/${arch}/${repo}${DBEXT} ]; then @@ -43,7 +43,8 @@ for repo in ${ARCHREPOS[@]}; do python clean_repo.py -k ${blacklist} -d ${repodir}/staging/${repo} done -db-update -~/repm/cron-jobs/ftpdir-cleanup +msg "Removing leftover files..." +find ${repodir}/staging/ \! -name "*${PKGEXT}*" -delete -get_license.sh +db-update +$(dirname $0)/cron-jobs/ftpdir-cleanup -- cgit v1.2.3