Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 | \