summaryrefslogtreecommitdiff
path: root/repo-update
diff options
context:
space:
mode:
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