index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-08-23 21:47:11 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-23 21:47:11 +0200 |
commit | 1061c920833a562e02584aa70e7c889a734139d8 (patch) | |
tree | 013b6407718f469e98ffcb2f1d0970895a4c4af2 /bin/return-assignment | |
parent | 7e69a472b3af0c66e85986f3d6a284a6e164b9fd (diff) |
-rwxr-xr-x | bin/return-assignment | 4 |
diff --git a/bin/return-assignment b/bin/return-assignment index ddea81b..8f11923 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -65,8 +65,8 @@ if [ "$5" = 'ERROR' ]; then # unlock every loop this package would have broken and which is not # broken by another locked package locked_packages=$( - find "${work_dir}/package-states/" -maxdepth 1 -name '*.locked' | \ - sed 's@^.*/\([^/]\+\)\.\([0-9a-f]\{40\}\.\)\{2\}[^.]\+\.locked$@\1@' + find "${work_dir}/package-states/" -maxdepth 1 -name '*.locked' -printf '%f\n' | \ + sed 's@^\(.\+\)\.\([0-9a-f]\{40\}\.\)\{2\}[^.]\+\.locked$@\1@' ) grep -lxF "${1}" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \ while read -r loop; do |