summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-04-23 00:52:32 +0200
committerErich Eckner <git@eckner.net>2017-04-23 00:52:32 +0200
commit7aee44e5a60d59e6f8b7b4313e97693f98e092aa (patch)
tree22dff4ec3d935a82606fb45a4de087cbb1f71526
parent563103068d7b669227d3794eec3b5e32b7b124d6 (diff)
downloadbuilder-7aee44e5a60d59e6f8b7b4313e97693f98e092aa.tar.xz
bin/get-package-updates: disentangle n->m mapping into n->1->m mapping for tsort
-rwxr-xr-xbin/get-package-updates11
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.'