diff options
author | Erich Eckner <git@eckner.net> | 2018-02-06 12:00:31 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-06 12:00:31 +0100 |
commit | 3e99365e5fc1c608e60c0465eba520806060413b (patch) | |
tree | 557d15708ff8b627793720d8bb260cd31dbebf24 | |
parent | aa1158a7f261100312057c94bfb40553c52296a6 (diff) | |
download | builder-3e99365e5fc1c608e60c0465eba520806060413b.tar.xz |
bin/show-dependencies: ORDER BY does not sort like "sort" :-/
-rwxr-xr-x | bin/show-dependencies | 4 |
1 files changed, 3 insertions, 1 deletions
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}" |