diff options
author | Erich Eckner <git@eckner.net> | 2017-08-02 12:33:42 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-02 12:33:42 +0200 |
commit | 83b4a6b218f25a5ff0e0cba119b20b2f866f53cc (patch) | |
tree | 889146d897fecc3dc9f4794e8047be164735b7e6 /bin | |
parent | dcf104b7e0d1efa38ce67bcd2601008a4091c64d (diff) | |
download | builder-83b4a6b218f25a5ff0e0cba119b20b2f866f53cc.tar.xz |
bin/show-dependencies: generate build-list.sorted-by-package on demand
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/show-dependencies | 9 |
1 files 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}" |