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>2020-01-03 13:10:48 +0100
committerErich Eckner <git@eckner.net>2020-01-03 13:10:48 +0100
commit717c155c53d6b164dd0ee756f3e8fc363f0e064c (patch)
tree13fd1c9547e279ef1d15bfd54c947ba40430fbfc /bin/sanity-check
parent011727c0a00bf1632a2a9563aacce9903aa0b631 (diff)
bin/sanity-check: recognize .zst packages, too
Diffstat (limited to 'bin/sanity-check')
-rwxr-xr-xbin/sanity-check10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 1d1867c..dc6efbb 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -352,15 +352,15 @@ while [ $# -gt 0 ]; do
packages=$(
ls_master_mirror "${arch}/${repo}" | \
- grep '\.pkg\.tar\.xz\(\.sig\)\?$'
+ grep '\.pkg\.tar\.\(xz\|zst\)\(\.sig\)\?$'
) || true
errors=$(
echo "${packages}" | \
grep '\S' | \
sed '
- s|^\(.*\.pkg\.tar\.xz\)$|package \1|
- s|^\(.*\.pkg\.tar\.xz\)\.sig$|signature \1|
+ s|^\(.*\.pkg\.tar\.\(xz\|zst\)\)$|package \1|
+ s|^\(.*\.pkg\.tar\.\(xz\|zst\)\)\.sig$|signature \1|
' | \
sort -k2 | \
uniq -cf1 | \
@@ -394,7 +394,7 @@ while [ $# -gt 0 ]; do
'
echo "${packages}" | \
sed '
- /\.pkg\.tar\.xz$/ !d
+ /\.pkg\.tar\.\(xz\|zst\)$/ !d
s/^/in_repository /
' | \
sort -u
@@ -480,7 +480,7 @@ while [ $# -gt 0 ]; do
while read -r repo; do
ls_master_mirror "${arch}/${repo}" | \
sed '
- /\.pkg\.tar\.xz$/!d
+ /\.pkg\.tar\.\(xz\|zst\)$/!d
s,^,package-file '"${arch}"'/'"${repo}"'/,
'
done