summaryrefslogtreecommitdiff
path: root/bin/why_dont_you_build
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-16 10:21:48 +0200
committerErich Eckner <git@eckner.net>2017-06-16 10:21:48 +0200
commit0eaf07b89956169ff54bc9f5aea0dd9fef92a8d6 (patch)
treed367b08aad76355c4f488c087781df18b7953001 /bin/why_dont_you_build
parentb61f18086363f3a5d4cad4733632f012027f0ccf (diff)
downloadbuilder-0eaf07b89956169ff54bc9f5aea0dd9fef92a8d6.tar.xz
rename why_dont_you_build -> why_dont_you: can now also tell why something is not unstaged
Diffstat (limited to 'bin/why_dont_you_build')
-rwxr-xr-xbin/why_dont_you_build63
1 files changed, 0 insertions, 63 deletions
diff --git a/bin/why_dont_you_build b/bin/why_dont_you_build
deleted file mode 100755
index 15a4ca5..0000000
--- a/bin/why_dont_you_build
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-# investigate, why a certain package is not being built
-
-. "${0%/*}/../conf/default.conf"
-
-for pkg in "$@"; do
- grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" | \
- while read -r package git_revision mod_git_revision repository; do
-
- if [ -f "${work_dir}/${package}.${git_revision}.${mod_git_revision}.${repository}.done" ] ||
- [ -f "${work_dir}/${package}.${git_revision}.${mod_git_revision}.${repository}.testing" ]; then
- echo 'has been built'
- continue
- fi
-
- if package_locked_broken_or_blocked "${package}" "${git_revision}" "${mod_git_revision}" "${repository}"; then
- echo 'is locked, broken or blocked'
- continue
- fi
-
- if [ -n "$(
- (
- cat "${work_dir}/package-infos/${package}.${git_revision}.${mod_git_revision}.needs"
- awk '{print $1 "." $2 "." $3}' "${work_dir}/build-list" | \
- sed "
- s|^|${work_dir}/package-infos/|
- s|\$|\.builds|
- " | \
- xargs -r cat | \
- sort -u
- ) | \
- sort | \
- uniq -d
- )" ]; then
- echo 'has unmet dependencies:'
- (
- cat "${work_dir}/package-infos/${package}.${git_revision}.${mod_git_revision}.needs"
- awk '{print $1 "." $2 "." $3}' "${work_dir}/build-list" | \
- sed "
- s|^|${work_dir}/package-infos/|
- s|\$|\.builds|
- " | \
- xargs -r cat | \
- sort -u
- ) | \
- sort | \
- uniq -d | \
- while read -r dep; do
- grep -Fx "${dep}" "${work_dir}/package-infos/"*".builds" | \
- cut -d: -f1 | \
- xargs -rn1 basename | \
- cut -d. -f1
- done | \
- sort -u
-
- continue
- fi
-
- echo 'would be built'
- done
-
-done