diff options
author | Erich Eckner <git@eckner.net> | 2017-04-23 00:52:32 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-04-23 00:52:32 +0200 |
commit | 7aee44e5a60d59e6f8b7b4313e97693f98e092aa (patch) | |
tree | 22dff4ec3d935a82606fb45a4de087cbb1f71526 | |
parent | 563103068d7b669227d3794eec3b5e32b7b124d6 (diff) | |
download | builder-7aee44e5a60d59e6f8b7b4313e97693f98e092aa.tar.xz |
bin/get-package-updates: disentangle n->m mapping into n->1->m mapping for tsort
-rwxr-xr-x | bin/get-package-updates | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates index 50c8216..11e2083 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -160,14 +160,15 @@ while read -r package git_rev repository; do fi while read target; do - echo "${target} ${target}" >> \ + echo "${target} ${package}" >> \ "${work_dir}/build-order" - while read dependency; do - echo "${target} ${dependency}" >> \ - "${work_dir}/build-order" - done < "${work_dir}/package-infos/${package}.${git_rev}.needs" done < "${work_dir}/package-infos/${package}.${git_rev}.builds" + while read dependency; do + echo "${package} ${dependency}" >> \ + "${work_dir}/build-order" + done < "${work_dir}/package-infos/${package}.${git_rev}.needs" + done < "${work_dir}/build-list.new" echo 'Now actually sort it.' |