Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/filter-build-logs
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-13 15:15:15 +0100
committerErich Eckner <git@eckner.net>2020-02-13 15:15:15 +0100
commite741a8e64c44a6dc6eb5bbb089224613cbcd496d (patch)
tree163aac4a8f2321f7403572c862433e70a067300c /bin/filter-build-logs
parent471418a1f18f1675ebc0f5522275d262cefc91e0 (diff)
bin/filter-build-logs: remove hard-coded package suffixes
Diffstat (limited to 'bin/filter-build-logs')
-rwxr-xr-xbin/filter-build-logs9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/filter-build-logs b/bin/filter-build-logs
index 263054a..398b0e8 100755
--- a/bin/filter-build-logs
+++ b/bin/filter-build-logs
@@ -25,12 +25,11 @@
'type' \
'message'
printf '</tr>\n'
- find "${build_log_directory}/success" -maxdepth 1 \( \
- -name '*.pkg.tar.xz-namcap.log.gz' \
- -o -name '*.pkg.tar.zst-namcap.log.gz' \
- \) -execdir zcat {} \; | \
+ find "${build_log_directory}/success" -maxdepth 1 \
+ -regex '.*\.pkg\.\('"${package_compression_suffix_regex}"'\)-namcap\.log\.gz' \
+ -execdir zcat {} \; | \
sed '
- /^Checking \(PKGBUILD\|\S\+\(-[^-]\+\)\{3\}\.pkg\.tar\.\(xz\|zst\)\)$/d
+ /^Checking \(PKGBUILD\|\S\+\(-[^-]\+\)\{3\}\.pkg\.\('"${package_compression_suffix_regex}"'\)\)$/d
/ on your system is a testing release$/d
s/^PKGBUILD\s\+(\([^) ]\+\))\s\+/\1 /
s/^./\0 /