diff options
Diffstat (limited to 'bin/why-dont-you')
-rwxr-xr-x | bin/why-dont-you | 16 |
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 ) | \ |