From 5adbf7ec39a69d5f99193ebd13eb308954c1835b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 18 Jul 2017 15:48:55 +0200 Subject: bin/why_dont_you: fix indentation and ignore built packages if asking why something will not be built --- bin/why_dont_you | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/why_dont_you b/bin/why_dont_you index 0175a10..aa4c4b0 100755 --- a/bin/why_dont_you +++ b/bin/why_dont_you @@ -16,17 +16,11 @@ case "${action}" in for pkg in "$@"; do ( grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" || \ - >&2 printf '"%s" is not on the build list.\n' "${pkg}" + >&2 printf '"%s" is not on the build list.\n' "${pkg}" continue ) | \ while read -r package git_revision mod_git_revision repository; do - if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.done" ] || - [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.testing" ]; then - echo 'has been built' - continue - fi - if package_locked_or_blocked "${package}" "${git_revision}" "${mod_git_revision}" "${repository}"; then printf '"%s" is locked or blocked\n' "${pkg}" continue -- cgit v1.2.3-54-g00ecf