Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-06 09:21:35 +0200
committerErich Eckner <git@eckner.net>2017-07-06 09:21:35 +0200
commit44903dcc7a1f9c41f194a3c213a812e00f817466 (patch)
treec420e789d2f7c3e32343fde1f9683d609c38d992
parentc9d144af7c3dc999643130406809d55a38861f47 (diff)
bin/why_dont_you: tell if package to be build is not on build list
-rwxr-xr-xbin/why_dont_you6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/why_dont_you b/bin/why_dont_you
index 2d28f85..8b2e49c 100755
--- a/bin/why_dont_you
+++ b/bin/why_dont_you
@@ -14,7 +14,11 @@ case "${action}" in
'build')
for pkg in "$@"; do
- grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" | \
+ (
+ grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" || \
+ >&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" ] ||