index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-07-03 14:27:30 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-03 14:27:30 +0200 |
commit | 7f1b05846122571fadb3cb09a077710d45d5356c (patch) | |
tree | 2b17357ddd01e4e18b98eaca9ccf8e2b58a6b413 | |
parent | 7595e2dfc796d03550ea62b602e985c4ab7ceba4 (diff) |
-rwxr-xr-x | bin/why_dont_you | 21 |
diff --git a/bin/why_dont_you b/bin/why_dont_you index ba43408..2d28f85 100755 --- a/bin/why_dont_you +++ b/bin/why_dont_you @@ -65,6 +65,7 @@ case "${action}" in ' done | \ sort -u + printf '\n' continue fi @@ -125,11 +126,27 @@ case "${action}" in if [ -n "${dependent_still_on_build_list}" ]; then printf 'The following packages are dependent on "%s", but still on the build list:\n' "${pkg}" echo "${dependent_still_on_build_list}" + printf '\n' continue fi - printf 'No dependencies left on build list for "%s".\n' "${pkg}" - echo "${dependent_packages}" + dependent_still_in_staging="$( + echo "${dependent_packages}" | \ + while read -r sf; do + if [ -f "${work_dir}/package-states/$sf."*".done" ]; then + echo "${sf}" + fi + done + )" + + if [ -n "${dependent_still_in_staging}" ]; then + printf 'The following packages are dependent on "%s" and still in staging - maybe they cannot be unstaged:\n' "${pkg}" + echo "${dependent_still_in_staging}" + printf '\n' + continue + fi + + printf 'Package "%s" can be unstaged.\n' "${pkg}" done |