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:
Diffstat (limited to 'bin/return-assignment')
-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"