From 3e99365e5fc1c608e60c0465eba520806060413b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Feb 2018 12:00:31 +0100 Subject: bin/show-dependencies: ORDER BY does not sort like "sort" :-/ --- bin/show-dependencies | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/show-dependencies b/bin/show-dependencies index 450120f..23e8e5f 100755 --- a/bin/show-dependencies +++ b/bin/show-dependencies @@ -32,12 +32,14 @@ if [ $# -eq 0 ]; then 'build_assignments' 'build_assignments' 'binary_packages' 'build_assignment' \ 'package_sources' 'package_sources' 'build_assignments' 'package_source' printf ' ORDER BY `binary_packages`.`pkgname`' + # Why can't mysql order in the same way "sort" does! } | \ ${mysql_command} --raw --batch | \ sed ' 1d y/\t/ / - ' > \ + ' | \ + sort -k2,2 > \ "${tmp_dir}/builds" while ! [ "${new_sum}" = "${sum}" ]; do sum="${new_sum}" -- cgit v1.2.3-70-g09d2