From 44903dcc7a1f9c41f194a3c213a812e00f817466 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 6 Jul 2017 09:21:35 +0200 Subject: bin/why_dont_you: tell if package to be build is not on build list --- bin/why_dont_you | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/why_dont_you') 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" ] || -- cgit v1.2.3-70-g09d2