Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-11 20:41:15 +0100
committerErich Eckner <git@eckner.net>2017-11-11 20:41:15 +0100
commitda241cfde2d6a841a841288081d7ef82993fbaed (patch)
tree9209b6be25dbe4a54687d2db25fbfcaa24d5a4a0 /bin
parent6a5295781b621b2341bf685206040649ad67bb9a (diff)
bin/show-dependencies: show dependencies from staging to staging
Diffstat (limited to 'bin')
-rwxr-xr-xbin/show-dependencies15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index 08a500b..be16dbc 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -234,6 +234,21 @@ for target_package in "$@"; do
sed '
s|^\(\S\+ \S\+\) |\1\n|
'
+ # staging -> something -> staging
+ join -1 1 -2 1 -o 1.1,1.2 \
+ "${tmp_dir}/known-connections.sorted.1" \
+ "${tmp_dir}/done-packages" | \
+ sort -k2,2 | \
+ join -1 2 -2 1 -o 1.1,1.2,2.1,2.2 \
+ - \
+ "${tmp_dir}/known-connections.sorted.1" | \
+ sort -k4,4 | \
+ join -1 4 -2 1 -o 1.1,1.2,1.3,1.4 \
+ - \
+ "${tmp_dir}/done-packages" | \
+ sed '
+ s|^\(\S\+ \S\+\) |\1\n|
+ '
# build-list -> something -> staging
join -1 1 -2 1 -o 1.1,1.2 \
"${tmp_dir}/known-connections.sorted.1" \