Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-06 09:21:41 +0200
committerErich Eckner <git@eckner.net>2017-06-06 09:21:41 +0200
commit80553a5f66ec89335cac617df1c34df8c07db7ee (patch)
tree2113114b4267519479d440a48317b0d3bbc8849c /bin/return-assignment
parentb819db442c5814707d65b6576d092838b1700c38 (diff)
bin/return-assignment: delete loop lock files along with loops
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 1f3267c..aca4062 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -149,7 +149,8 @@ mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/$4-staging/"
# remove all loops which are broken by this package
grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \
cut -d: -f1 | \
- xargs -rn1 rm
+ sed 'p;s|$|.locked|' | \
+ xargs -rn1 rm -f
# remove package from build list
sed -i "/^${1//./\\.} $2 $3 $4\$/d" "${work_dir}/build-list"