Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/why-dont-you
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/why-dont-you
parent8a8d2d7644c275cea599ac91d2d83154c91547a9 (diff)
clean up meta-data naming mess: {needs; depends} -> {run-depends, build-depends} (content differs, too)
Diffstat (limited to 'bin/why-dont-you')
-rwxr-xr-xbin/why-dont-you16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/why-dont-you b/bin/why-dont-you
index 64f914c..5dcf243 100755
--- a/bin/why-dont-you
+++ b/bin/why-dont-you
@@ -67,10 +67,10 @@ case "${action}" in
fi
dependent_packages=$(
- grep -lxF "${pkg}" "${work_dir}/package-infos/"*".needs" | \
+ grep -lxF "${pkg}" "${work_dir}/package-infos/"*".run-depends" | \
sed '
s|^.*/||
- s|\.needs$||
+ s|\.run-depends$||
'
)
@@ -216,22 +216,22 @@ case "${action}" in
continue
fi
- needs=$(
- find "${work_dir}/package-infos" -maxdepth 1 -name "${pkg}.*.needs"
+ build_depends=$(
+ find "${work_dir}/package-infos" -maxdepth 1 -name "${pkg}.*.build-depends"
)
- if [ -z "${needs}" ]; then
+ if [ -z "${build_depends}" ]; then
printf 'Package "%s" was deleted in the git repositories.\n' "${pkg}"
continue
fi
- needs=$(
- sort -u "${needs}"
+ build_depends=$(
+ sort -u "${build_depends}"
)
errors=$(
(
# shellcheck disable=SC2086
- printf '%s\n' ${needs}
+ printf '%s\n' ${build_depends}
awk '{print $3}' "${tmp_file}" | \
sort -u
) | \