From b5bacd8de3c56f996f8fdd27365e735e71e0c152 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 9 Mar 2018 10:28:52 +0100 Subject: bin/db-update: use repo-copy to avoid needing to pull all moving packages --- bin/db-update | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index d79cc37..a1622ec 100755 --- a/bin/db-update +++ b/bin/db-update @@ -202,19 +202,12 @@ for source_stability in 'testing' 'staging'; do "${tmp_dir}/rm" # delete and add moved packages - mkdir "${tmp_dir}/transit" while read -r pkgname from_repo to_repo; do - ${master_mirror_rsync_command} \ - "${master_mirror_rsync_directory}/i686/${from_repo}/${pkgname}" \ - "${master_mirror_rsync_directory}/i686/${from_repo}/${pkgname}.sig" \ - "${tmp_dir}/transit/" - cd "${tmp_dir}/dbs/${from_repo}" - repo-remove -q "${from_repo}.db.tar.gz" "${pkgname%-*-*-*}" - cd "${tmp_dir}/dbs/${to_repo}" - repo-add -q "${to_repo}.db.tar.gz" "${tmp_dir}/transit/${pkgname}" - rm \ - "${tmp_dir}/transit/${pkgname}" \ - "${tmp_dir}/transit/${pkgname}.sig" + repo-copy \ + "${tmp_dir}/dbs/${from_repo}/${from_repo}.db.tar.gz" \ + "${tmp_dir}/dbs/${to_repo}/${to_repo}.db.tar.gz" \ + "${pkgname%-*}" + repo-remove -q "${tmp_dir}/dbs/${from_repo}/${from_repo}.db.tar.gz" "${pkgname%-*-*-*}" done < \ "${tmp_dir}/mv" -- cgit v1.2.3-70-g09d2