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 16:11:08 +0200
committerErich Eckner <git@eckner.net>2017-06-14 16:11:08 +0200
commit6c9ef1ccaca1763d6a9e46c71ed9c67f6139c5bc (patch)
treee1d1bf6f08fc8d0c6486bed5590fda3d1f9b3946 /bin/db-update
parentf25f9462a68a968a676d555613cdfa6e7516cad1 (diff)
remove bashisms - only "bash arrays" and "bash string substituions" left
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/db-update b/bin/db-update
index 7e95460..57c8111 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -53,7 +53,7 @@ do
;;
*)
>&2 echo 'Whoops, forgot to implement option "'"$1"'" internally.'
- exit -1
+ exit 42
;;
esac
shift
@@ -85,7 +85,7 @@ if ! flock ${block_flag} 8; then
exit 1
fi
-function clean_up_lock_file {
+clean_up_lock_file() {
rm -f "${package_database_lock_file}" "${build_list_lock_file}"
}
@@ -183,7 +183,7 @@ done
rm -f "${build_list_lock_file}"
flock -u 9
-function clean_up_lock_file {
+clean_up_lock_file() {
rm -f "${package_database_lock_file}"
}
@@ -217,7 +217,7 @@ for package in ${done_packages}; do
mkdir -p "../${is_community}testing"
repo-remove "${is_community}staging.db.tar.gz" "${parts_names[@]}"
for part in "${parts[@]}"; do
- mv "${part}"{,.sig} "../${is_community}testing/"
+ mv "${part}" "${part}.sig" "../${is_community}testing/"
updated_package_database=true
done
popd > /dev/null
@@ -228,7 +228,9 @@ for package in ${done_packages}; do
done
popd > /dev/null
- mv "${work_dir}/package-states/${package}."{done,testing}
+ mv \
+ "${work_dir}/package-states/${package}.done" \
+ "${work_dir}/package-states/${package}.testing"
done
# move packages in packages_to_stabilize from *testing/ to the stable repos
@@ -245,7 +247,7 @@ for package in "${packages_to_stabilize[@]}"; do
pushd "${master_mirror_directory}/i686/${source}" > /dev/null
repo-remove "${source}.db.tar.gz" "${parts_names[@]}"
for part in "${parts[@]}"; do
- mv "${part}"{,.sig} "../${destination}/"
+ mv "${part}" "${part}.sig" "../${destination}/"
updated_package_database=true
done
popd > /dev/null