From e741a8e64c44a6dc6eb5bbb089224613cbcd496d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 13 Feb 2020 15:15:15 +0100 Subject: bin/filter-build-logs: remove hard-coded package suffixes --- bin/filter-build-logs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin/filter-build-logs') 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 '\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 / -- cgit v1.2.3