index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-14 13:13:24 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-14 13:13:24 +0200 |
commit | c2caa7200d040cd3d242587ca241b93fabd91a8b (patch) | |
tree | 4dca92d7ba00617b4b04b504d5669a6049e1d13a | |
parent | 25da9bfd6828868cf0d300bc45cbdff069d751c0 (diff) |
-rwxr-xr-x | bin/db-update | 18 |
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} |