Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-18 16:00:37 +0200
committerErich Eckner <git@eckner.net>2017-05-18 16:00:37 +0200
commit5ddd97920ded5c0cbcecfd5c46c170cb4d235d31 (patch)
tree95f3858147d0b951e036cc5dd10c6f00c81aecec /bin
parenta17e5c2691bc234e791dd3fccaf14882d2b6e273 (diff)
bin/return-assignment: removal of loops now more robust
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 0f000f3..53708a7 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -130,10 +130,9 @@ mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/$4-staging/"
)
# remove all loops which are broken by this package
-sed '1d' "${work_dir}/package-states/$1.$2.$3.$4.locked" | \
- sort -u | \
- sed 'p;s|$|.locked|' | \
- xargs -rn1 rm -f
+grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/loop_"* 2> /dev/null | \
+ cut -d: -f1 | \
+ xargs -rn1 rm
# remove package from build list
sed -i "/^${1//./\\.} $2 $3 $4\$/d" "${work_dir}/build-list"