summaryrefslogtreecommitdiff
path: root/repo-update
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-25 15:54:01 -0700
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-25 15:55:16 -0700
commit4b2bd9a51f8f59106234f8889ae0ad98598f33bc (patch)
treec46e13486c573f3c551e9555a8b15f266e04fe28 /repo-update
parent63bf094a4e472b2bc15ed03fb956401b9246660e (diff)
* Added a cleaning cmd for symbolic links in staging
* Added repo-add, repo-remove
Diffstat (limited to 'repo-update')
-rwxr-xr-xrepo-update10
1 files changed, 6 insertions, 4 deletions
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