diff options
author | Erich Eckner <git@eckner.net> | 2018-09-03 14:18:01 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-03 14:18:01 +0200 |
commit | 385150b196c418d3056e02bf9a0f22a2f383bff7 (patch) | |
tree | 8be2ce8ccfe00ed2feb34b3c57847179ce0ac649 /bin | |
parent | a4938cc0a9594028d117b970ce973155444ff565 (diff) | |
download | builder-385150b196c418d3056e02bf9a0f22a2f383bff7.tar.xz |
lib/mysql-functions: mysql_load_min_and_max_versions() new
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/return-assignment | 22 |
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 |