Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-03 14:18:01 +0200
committerErich Eckner <git@eckner.net>2018-09-03 14:18:01 +0200
commit385150b196c418d3056e02bf9a0f22a2f383bff7 (patch)
tree8be2ce8ccfe00ed2feb34b3c57847179ce0ac649 /bin/return-assignment
parenta4938cc0a9594028d117b970ce973155444ff565 (diff)
lib/mysql-functions: mysql_load_min_and_max_versions() new
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment22
1 files changed, 1 insertions, 21 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 8db7737..b1bd51e 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -538,27 +538,7 @@ if [ -n "${errors}" ]; then
exit 1
fi
-min_version=$(
- # shellcheck disable=SC2016
- {
- printf 'SELECT CONCAT(`versions`.`epoch`,":",`versions`.`version`)'
- printf ' FROM `versions`'
- printf ' ORDER BY `versions`.`order`'
- printf ' LIMIT 1'
- } | \
- mysql_run_query
-)
-
-max_version=$(
- # shellcheck disable=SC2016
- {
- printf 'SELECT CONCAT(`versions`.`epoch`,":",`versions`.`version`)'
- printf ' FROM `versions`'
- printf ' ORDER BY `versions`.`order` DESC'
- printf ' LIMIT 1'
- } | \
- mysql_run_query
-)
+mysql_load_min_and_max_versions
while read -r package_id package_name; do
# move namcap.logs