From c2caa7200d040cd3d242587ca241b93fabd91a8b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Jun 2017 13:13:24 +0200 Subject: bin/db-update: expect packages in staging and community-staging --- bin/db-update | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 81bb2d6..34573bc 100755 --- a/bin/db-update +++ b/bin/db-update @@ -204,18 +204,20 @@ for package in ${done_packages}; do sed 's|\(-[^-]\+\)\{3\}\.pkg\.tar\.xz$||' ) ) - destination="$(official_or_community "${package}")testing" - - pushd "${master_mirror_directory}/i686/staging" > /dev/null - mkdir -p "../${destination}" - repo-remove 'staging.db.tar.gz' "${parts_names[@]}" + is_community="$(official_or_community "${package}")" + pushd "${master_mirror_directory}/i686/${is_community}staging" > /dev/null + mkdir -p "../${is_community}testing" + repo-remove "${is_community}staging.db.tar.gz" "${parts_names[@]}" for part in "${parts[@]}"; do - mv "${part}"{,.sig} "../${destination}/" + mv "${part}"{,.sig} "../${is_community}testing/" updated_package_database=true done popd > /dev/null - pushd "${master_mirror_directory}/i686/${destination}" > /dev/null - repo-add "${destination}.db.tar.gz" "${parts[@]}" + pushd "${master_mirror_directory}/i686/${is_community}testing" > /dev/null + repo-add "${is_community}testing.db.tar.gz" "${parts[@]}" + for part in "${parts[@]}"; do + remove_old_package_versions "${part}" + done popd > /dev/null mv "${work_dir}/package-states/${package}."{done,testing} -- cgit v1.2.3-70-g09d2