Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-14 13:13:24 +0200
committerErich Eckner <git@eckner.net>2017-06-14 13:13:24 +0200
commitc2caa7200d040cd3d242587ca241b93fabd91a8b (patch)
tree4dca92d7ba00617b4b04b504d5669a6049e1d13a /bin/db-update
parent25da9bfd6828868cf0d300bc45cbdff069d751c0 (diff)
bin/db-update: expect packages in staging and community-staging
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update18
1 files changed, 10 insertions, 8 deletions
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}