summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-23 12:49:07 +0200
committerErich Eckner <git@eckner.net>2017-05-23 12:49:07 +0200
commitac219a775d25a3bc43c9440c0914d07872f0eff7 (patch)
treef993ebda4782d6ffca1ae1dec0c5373e024d22f2 /bin
parenta6826d61079f9d725a33834798f6c6918dfbe328 (diff)
downloadbuilder-ac219a775d25a3bc43c9440c0914d07872f0eff7.tar.xz
bin/return-assignment: supress error message in case of returning last locked package
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment3
1 files changed, 2 insertions, 1 deletions
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 | \