index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-22 16:43:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-22 16:43:40 +0200 |
commit | 0e13adff76c5ab655df3b9fb0dcd28b4df5083f5 (patch) | |
tree | 2e0922a2550b6776ca790545a68bbed234af6be3 /bin/return-assignment | |
parent | b46ff981026ec7541b23c131c0c77b984fd33cae (diff) |
-rwxr-xr-x | bin/return-assignment | 6 |
diff --git a/bin/return-assignment b/bin/return-assignment index 3090089..8e24ed8 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -68,8 +68,7 @@ if [ "$5" = 'ERROR' ]; then grep '\.locked$' | \ sed 's@^.*/\([^/]\+\)\.\([0-9a-f]\{40\}\.\)\{2\}[^.]\+\.locked$@\1@' )" - grep -xF "${1}" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ - cut -d: -f1 | \ + grep -lxF "${1}" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ while read -r loop; do if [ -z "$( ( @@ -206,8 +205,7 @@ ls "${work_dir}/package-states" | \ xargs -rn1 rm -f # remove all loops which are broken by this package -grep -xF "$1" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ - cut -d: -f1 | \ +grep -lxF "$1" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ sed 'p;s|$|.locked|' | \ xargs -rn1 rm -f |