Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/calculate-dependent-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-13 14:28:59 +0200
committerErich Eckner <git@eckner.net>2017-09-13 14:28:59 +0200
commitab6335819fd13daf88e628d9fc4f9b44bec13af0 (patch)
tree3994e0d4d46ce583ae410aaa46ec61d216416858 /bin/calculate-dependent-packages
parent8a8d2d7644c275cea599ac91d2d83154c91547a9 (diff)
clean up meta-data naming mess: {needs; depends} -> {run-depends, build-depends} (content differs, too)
Diffstat (limited to 'bin/calculate-dependent-packages')
-rwxr-xr-xbin/calculate-dependent-packages21
1 files changed, 10 insertions, 11 deletions
diff --git a/bin/calculate-dependent-packages b/bin/calculate-dependent-packages
index 1b16a91..0204d21 100755
--- a/bin/calculate-dependent-packages
+++ b/bin/calculate-dependent-packages
@@ -55,24 +55,23 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
sed '
s|^|'"${work_dir}"'/package-infos/|
- s|$|.needs|
+ s|$|.build-depends|
' "${tmp_dir}/build-list" | \
- xargs -r cat | \
- grep -vx 'base\|base-devel' | \
+ xargs -r grep -vx 'base\|base-devel' | \
sort -u > \
- "${tmp_dir}/build-list.needs"
+ "${tmp_dir}/build-list.build-depends"
sed '
s|^\S\+ |'"${work_dir}"'/package-infos/|
- s|$|.needs|
+ s|$|.build-depends|
' "${tmp_dir}/dependent-count" | \
xargs -r grep -Hvx 'base\|base-devel' | \
sed '
s|^.*/||
- s|\.needs:| |
+ s|\.build-depends:| |
' | \
sort -k2,2 > \
- "${tmp_dir}/dependent-count.needs"
+ "${tmp_dir}/dependent-count.build-depends"
rm -f "${tmp_dir}/dependent-count.new"
touch "${tmp_dir}/dependent-count.new"
@@ -81,7 +80,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
if [ -n "$(
(
sort -u "${work_dir}/package-infos/${sf}.builds"
- cat "${tmp_dir}/build-list.needs"
+ cat "${tmp_dir}/build-list.build-depends"
) | \
sort | \
uniq -d
@@ -91,7 +90,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
count="/$(
sort -u "${work_dir}/package-infos/${sf}.builds" | \
- join -1 1 -2 2 -o 2.1 - "${tmp_dir}/dependent-count.needs" | \
+ join -1 1 -2 2 -o 2.1 - "${tmp_dir}/dependent-count.build-depends" | \
sort -u | \
join -1 1 -2 2 -o 2.1,2.2 - "${tmp_dir}/dependent-count" | \
tr '/ ' '\n' | \
@@ -130,7 +129,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
uniq -u | \
sed '
s|^|'"${work_dir}"'/package-infos/|
- s|$|.needs|
+ s|$|.build-depends|
' | \
xargs -r cat | \
grep -vx 'base\|base-devel' | \
@@ -149,7 +148,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
' "${loop}" | \
xargs -r cat | \
sort -u | \
- join -1 1 -2 2 -o 2.1 - "${tmp_dir}/dependent-count.needs" | \
+ join -1 1 -2 2 -o 2.1 - "${tmp_dir}/dependent-count.build-depends" | \
sort -u | \
join -1 1 -2 2 -o 2.1,2.2 - "${tmp_dir}/dependent-count" | \
tr '/ ' '\n' | \