summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-18 15:48:55 +0200
committerErich Eckner <git@eckner.net>2017-07-18 15:48:55 +0200
commit5adbf7ec39a69d5f99193ebd13eb308954c1835b (patch)
tree2a0e104da9727dde9640f3ac335875220f87930a /bin
parent23507ddc597632a25c846439c9adb2abb12ea59f (diff)
downloadbuilder-5adbf7ec39a69d5f99193ebd13eb308954c1835b.tar.xz
bin/why_dont_you: fix indentation and ignore built packages if asking why something will not be built
Diffstat (limited to 'bin')
-rwxr-xr-xbin/why_dont_you8
1 files changed, 1 insertions, 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