diff options
author | Erich Eckner <git@eckner.net> | 2021-01-10 20:50:01 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-01-10 20:50:01 +0100 |
commit | 198c1c537490c0cad8a76401d49bef8ecf0ab3c8 (patch) | |
tree | f672df0a7a533ff29765dc471fa9da24a60eaafa | |
parent | ab25da2a469046576d0aa5586db460f9986e361f (diff) | |
download | builder-198c1c537490c0cad8a76401d49bef8ecf0ab3c8.tar.xz |
bin/wtp: order results
-rwxr-xr-x | bin/wtp | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -29,7 +29,9 @@ printf 'CONCAT(".",`binary_packages`.`sub_pkgrel`),' printf '""),' printf '")"' - printf ') SEPARATOR ", "' + printf ')' + printf ' ORDER BY `repositories`.`stability`' + printf ' SEPARATOR ", "' printf ')' printf ')' printf ' FROM `binary_packages`' @@ -41,6 +43,8 @@ printf '%s' "$*" | \ base64 -w0 printf '") AND `repositories`.`is_on_master_mirror`' - printf ' GROUP BY CONCAT(`binary_packages`.`pkgname`,"-",`architectures`.`name`);\n' + printf ' GROUP BY CONCAT(`binary_packages`.`pkgname`,"-",`architectures`.`name`)' + printf ' ORDER BY `binary_packages`.`pkgname`,`architectures`.`name`' + printf ';\n' } | \ mysql_run_query |