summaryrefslogtreecommitdiff
path: root/repo-update
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-22 00:30:43 -0700
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-22 00:30:43 -0700
commitbba8c33a039ec4d1e1d13f88304ba0aeb754b03e (patch)
tree551c9bb4003c69b7bd0f2d7fd3587bdd1c5ba546 /repo-update
parente3325948742bc89c57836de0db330a64dcfe8afc (diff)
Midnight fix
Diffstat (limited to 'repo-update')
-rwxr-xr-xrepo-update17
1 files changed, 9 insertions, 8 deletions
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