From 4b2bd9a51f8f59106234f8889ae0ad98598f33bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Mon, 25 Apr 2011 15:54:01 -0700 Subject: * Added a cleaning cmd for symbolic links in staging * Added repo-add, repo-remove --- repo-update | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'repo-update') diff --git a/repo-update b/repo-update index d06b927..60960f2 100755 --- a/repo-update +++ b/repo-update @@ -34,7 +34,7 @@ for repo in ${ARCHREPOS[@]}; do if [ -r ${repodir}/staging/${repo}/os/${arch}/${repo}${DBEXT} ]; then # clean_repo makes pending list with files on db and remove # packages from db - clean_repo.py -k ${blacklist} -w ${whitelist} \ + $(dirname $0)/clean_repo.py -k ${blacklist} -w ${whitelist} \ -p ${docs_dir}/pending-${repo}.txt \ -b ${repodir}/staging/${repo}/${repo}${DBEXT} \ -d ${repodir}/stagging/${repo} @@ -42,11 +42,13 @@ for repo in ${ARCHREPOS[@]}; do done # if some nonfree files got pass the filter this command delete them msg2 "Fallback cleaning repo" - python clean_repo.py -k ${blacklist} -d ${repodir}/staging/${repo} + $(dirname $0)/clean_repo.py -k ${blacklist} -d ${repodir}/staging/${repo} done msg "Removing leftover files..." find ${repodir}/staging/ -type f \! -name "*${PKGEXT}" -delete +# Staging should not have symbolic links +find ${repodir}/staging/ -type l -delete -db-update -$(dirname $0)/cron-jobs/ftpdir-cleanup +$(dirname $0)/db-update +#$(dirname $0)/cron-jobs/ftpdir-cleanup -- cgit v1.2.3-2-g168b