Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/sanity-check
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-01 10:28:05 +0100
committerErich Eckner <git@eckner.net>2017-11-01 10:28:05 +0100
commitad463afa2d41e42463476e43436eac224bac1de3 (patch)
tree3c51efa5929a02cbde5df72750b4843460d26edf /bin/sanity-check
parent05a43c23b36c4b68a246bc69fa0d699a3ec469fb (diff)
() -> {}
Diffstat (limited to 'bin/sanity-check')
-rwxr-xr-xbin/sanity-check20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 37e2cd3..d329869 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -168,11 +168,11 @@ while [ $# -gt 0 ]; do
fi
errors=$(
- (
+ {
cut -d' ' -f1 < \
"${work_dir}/build-list"
cat "${work_dir}/deletion-list"
- ) | \
+ } | \
sort | \
uniq -d
)
@@ -198,12 +198,12 @@ while [ $# -gt 0 ]; do
"${tmp_dir}/messages"
errors=$(
- (
+ {
# shellcheck disable=SC2086
printf 'expected %s\n' ${repos}
ls_master_mirror 'i686' | \
sed 's|^|found |'
- ) | \
+ } | \
sort -k2 | \
uniq -uf1
)
@@ -263,7 +263,7 @@ while [ $# -gt 0 ]; do
"${tmp_dir}/"
errors=$(
- (
+ {
tar -tzf "${tmp_dir}/${repo}.db.tar.gz" | \
grep '/$' | \
sed '
@@ -277,7 +277,7 @@ while [ $# -gt 0 ]; do
s|^|in_repository |
' | \
sort -u
- ) | \
+ } | \
sort -k2 | \
uniq -uf1
)
@@ -292,7 +292,7 @@ while [ $# -gt 0 ]; do
fi
errors=$(
- (
+ {
tar -tzf "${tmp_dir}/${repo}.files.tar.gz" | \
grep '/$' | \
sed '
@@ -306,7 +306,7 @@ while [ $# -gt 0 ]; do
s|^|in_repository |
' | \
sort -u
- ) | \
+ } | \
sort -k2 | \
uniq -uf1
)
@@ -339,7 +339,7 @@ while [ $# -gt 0 ]; do
"${tmp_dir}/messages"
errors=$(
- (
+ {
if [ "${status}" = 'staging' ]; then
find "${work_dir}/package-states" -name '*.done' \
-exec sed 's|^|package-state-file |' '{}' \;
@@ -354,7 +354,7 @@ while [ $# -gt 0 ]; do
done | \
grep '\.pkg\.tar\.xz$' | \
sed 's|^|package-file |'
- ) | \
+ } | \
sort -k2 | \
uniq -cf1 | \
grep -v '^\s*2\s' | \