From 58dcd2bd938eb64e3c0d31841f98f43a8a1ca346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Sat, 13 Oct 2012 10:57:28 -0300 Subject: Deprecating repo-update Thanks to aurelien to make me find the misterious garbage packages under staging/! --- repo-update | 59 ----------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100755 repo-update diff --git a/repo-update b/repo-update deleted file mode 100755 index bf8d73c..0000000 --- a/repo-update +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# -*- coding: utf-8 -*- -source ~/.bashrc -source $(dirname $0)/config -source $(dirname $0)/local_config -source $(dirname $0)/libremessages - -for repo in ${ARCHREPOS[@]}; do - - msg "Syncing ${repo}" - for arch in ${ARCHARCHES[@]}; do - msg2 "${repo} ${arch}" - # makes a file containing rsync output for filter.py - ${rsync_list_command} \ - rsync://${mirror}/${mirrorpath}/${repo}/os/${arch}/ \ - ${repodir}/staging/${repo}/os/${arch}/ > ${rsout_file}-${repo}-${arch} || exit 1 - # reads blacklist and rsout_file and makes an rsync exclude-from - # list - filter.py -r ${rsync_blacklist} -k ${blacklist} \ - -f ${rsout_file}-${repo}-${arch} || exit 1 - # list files in ${repodir}/${repo} and write their names on - # rsync_not_needed for using as an rsync exclude-from - #find ${repodir}/${repo}/os/${arch}/ -name "*${PKGEXT}" \ - # -fprintf ${rsync_not_needed}-${repo}-${arch} '%f\n' || exit 1 - #find ${repodir}/${PKGPOOL}/ -name "*${PKGEXT}" \ - find ${repodir}/${repo}/os/${arch}/ -name "*${PKGEXT}" \ - -fprintf ${rsync_not_needed}-${repo}-${arch} '%f\n' || exit 1 - # Actual rsync command - ${rsync_update_command} \ - --exclude-from=${rsync_blacklist} \ - --exclude-from=${rsync_not_needed}-${repo}-${arch} \ - rsync://${mirror}/${mirrorpath}/${repo}/os/${arch}/ \ - ${repodir}/staging/${repo}/ || exit 1 - done - for arch in ${ARCHARCHES[@]}; do - 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 - $(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} - fi - done - # if some nonfree files got pass the filter this command delete them - msg2 "Fallback cleaning repo" - $(dirname $0)/clean_repo.py -k ${blacklist} -d ${repodir}/staging/${repo} || exit 1 -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 - -$(dirname $0)/db-update -$(dirname $0)/db-check-nonfree - -- cgit v1.2.3