From 83b4a6b218f25a5ff0e0cba119b20b2f866f53cc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 2 Aug 2017 12:33:42 +0200 Subject: bin/show-dependencies: generate build-list.sorted-by-package on demand --- bin/show-dependencies | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/show-dependencies b/bin/show-dependencies index fd7bf97..e6eb070 100755 --- a/bin/show-dependencies +++ b/bin/show-dependencies @@ -53,11 +53,14 @@ sort -u "${work_dir}/build-order" | \ grep '^\S\+ \S\+$' > \ "${tmp_dir}/original-build-order" +sort -k1,1 "${work_dir}/build-list" > \ + "${tmp_dir}/build-list.sorted-by-package" + ( sort -k1,1 "${tmp_dir}/original-build-order" | \ - join -1 1 -2 1 -o 1.1,1.2 - "${work_dir}/build-list.sorted-by-package" + join -1 1 -2 1 -o 1.1,1.2 - "${tmp_dir}/build-list.sorted-by-package" sort -k2,2 "${tmp_dir}/original-build-order" | \ - join -1 2 -2 1 -o 1.1,1.2 - "${work_dir}/build-list.sorted-by-package" + join -1 2 -2 1 -o 1.1,1.2 - "${tmp_dir}/build-list.sorted-by-package" ) | \ sort -u | \ sponge "${tmp_dir}/original-build-order" @@ -123,7 +126,7 @@ for target_package in "$@"; do tr ' ' '\n' < \ "${tmp_dir}/build-order" | \ sort -u | \ - join -j 1 - "${work_dir}/build-list.sorted-by-package" | \ + join -j 1 - "${tmp_dir}/build-list.sorted-by-package" | \ while read pkg rev mod_rev repo; do if [ -f "${work_dir}/package-states/${pkg}.${rev}.${mod_rev}.${repo}.broken" ]; then printf '1 broken-build-list-package %s\n' "${pkg}" -- cgit v1.2.3-70-g09d2