From ac219a775d25a3bc43c9440c0914d07872f0eff7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 23 May 2017 12:49:07 +0200 Subject: bin/return-assignment: supress error message in case of returning last locked package --- bin/return-assignment | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index bcba543..308e9a0 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -42,7 +42,8 @@ if [ "$5" == 'ERROR' ]; then # unlock every loop this package would have broken and which is not # broken by another locked package locked_packages="$( - ls "${work_dir}/package-states/"*".locked" | \ + ls "${work_dir}/package-states/" | \ + grep '\.locked$' | \ sed 's@^.*/\([^/]\+\)\.\([0-9a-f]\{40\}\.\)\{2\}[^.]\+\.locked$@\1@' )" grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ -- cgit v1.2.3-70-g09d2