summaryrefslogtreecommitdiff
path: root/repo-update
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-22 01:04:55 -0700
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-22 01:04:55 -0700
commit65cb50c483621d6043685513531001a24228062b (patch)
treef0e8391b053c2e616312ba99d88271ccba4027c6 /repo-update
parentbba8c33a039ec4d1e1d13f88304ba0aeb754b03e (diff)
Clean_repo deletes pending-files
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 88ddda3..8ad5aef 100755
--- a/repo-update
+++ b/repo-update
@@ -6,8 +6,9 @@ source $(dirname $0)/local_config
source $(dirname $0)/libremessages
for repo in ${ARCHREPOS[@]}; do
+ msg "Syncing ${repo}"
for arch in ${ARCHARCHES[@]} 'any'; do
- msg "Syncing ${repo} ${arch}"
+ msg2 "${repo} ${arch}"
# makes a file containing rsync output for filter.py
${rsync_list_command} \
rsync://${mirror}/${mirrorpath}/${repo}/os/${arch}/ \
@@ -28,18 +29,19 @@ for repo in ${ARCHREPOS[@]}; do
${repodir}/staging/${repo}/
done
for arch in ${ARCHARCHES[@]}; do
- msg "Cleaning $repo $arch"
+ msg2 "Making pending list for $repo $arch"
# if there is a db in repo (db is created on rsync)
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} \
-p ${docs_dir}/pending-${repo}.txt \
- -b ${repodir}/staging/${repo}/${repo}${DBEXT}
+ -b ${repodir}/staging/${repo}/${repo}${DBEXT} \
+ -d ${repodir}/stagging/${repo}
fi
done
# if some nonfree files got pass the filter this command delete them
- msg "Fallback cleaning repo"
+ msg2 "Fallback cleaning repo"
python clean_repo.py -k ${blacklist} -d ${repodir}/staging/${repo}
done