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-05-18 10:12:26 +0200
committerErich Eckner <git@eckner.net>2017-05-18 10:12:26 +0200
commit3ab3516c29741dea9ae3772b63678a83eab91aa6 (patch)
tree2cea6abcf258f2837b661f15539bf743fcf369e8 /bin/return-assignment
parenta5471a4ac3c25a2cb9181ddb7dcaf3c651169f97 (diff)
bin/return-assignment: cleanup and bugfix
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 1ecae9c..a67f1de 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -42,15 +42,14 @@ if [ "$5" == 'ERROR' ]; then
# broken by another locked package
(
# loops broken by another locked package
- ls "${work_dir}/package-states/"{*.*.*.*,$1.$2.$3.$4}.locked | \
- sort | \
- uniq -u | \
+ ls "${work_dir}/package-states/" | \
+ grep '\.locked$' | \
sed 's|\.locked$||' | \
xargs -n1 sed '1d' | \
sort -u | \
sed 'p'
# loops broken by this package
- sed '1d' "${work_dir}/package-states/$1.$2.$3.$4"
+ sed '1d' "${work_dir}/package-states/$1.$2.$3.$4.broken"
) | \
sort | \
uniq -u | \