From bef1e554380b797a4dfff5950c5aea59d093b4be Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernández Date: Sat, 16 Apr 2011 12:16:21 -0500 Subject: main.sh renamed to repo-update --- repo-update | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 repo-update (limited to 'repo-update') diff --git a/repo-update b/repo-update new file mode 100755 index 0000000..b3ecb92 --- /dev/null +++ b/repo-update @@ -0,0 +1,35 @@ +#!/bin/bash +# -*- coding: utf-8 -*- + +source ./config +source ./local_config +source ./libremessages + +for repo in ${PKGREPOS[@]}; do + for arch in ${ARCHES[@]} 'any'; do + msg "Syncing ${repo} ${arch}" + filter.py -r "${rsync_blacklist}" -k "${blacklist}" -c \ + \"${rsync_list_command}\ \ + ${mirror}${mirrorpath}/${repo}/os/${arch}\ \ + ${repodir}/${repo}/\" + find ${repodir}/${repo} -name *${PKGEXT} -print \ + > ${rsync_not_needed} + ${rsync_update_command} \ + ${mirror}${mirrorpath}/${repo}/os/${arch} \ + ${repodir}/${repo} \ + --exclude-from=${rsync_blacklist} \ + --exclude-from=${rsync_not_needed} + done + for arch in ${ARCHES[@]}; do + if [ -r ${repodir}/${repo}/os/${arch}/${repo}${DBEXT} ]; then + clean_repo.py -k ${blacklist} -w ${whitelist} \ + -p ${docs_dir}/pending-${repo} \ + -b ${repodir}/${repo}/${repo}${DBEXT} + fi + clean_repo.py -k ${blacklist} -d ${repodir}/${repo} +done + +db-update +ftpdir-cleanup + +get_license.sh -- cgit v1.2.3-54-g00ecf From fbc8eec9e5cb3d598fb84579811f16ff8c2b71d8 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernández Date: Sat, 16 Apr 2011 12:26:13 -0500 Subject: Fixed error in repo-update --- repo-update | 1 + 1 file changed, 1 insertion(+) (limited to 'repo-update') diff --git a/repo-update b/repo-update index b3ecb92..59a0658 100755 --- a/repo-update +++ b/repo-update @@ -27,6 +27,7 @@ for repo in ${PKGREPOS[@]}; do -b ${repodir}/${repo}/${repo}${DBEXT} fi clean_repo.py -k ${blacklist} -d ${repodir}/${repo} + done done db-update -- cgit v1.2.3-54-g00ecf