From c14273ee213ff008a64b7042f03bce5559363454 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Fri, 29 Mar 2024 21:52:43 -0400 Subject: [PATCH] do the checks for constraints (#10) Co-authored-by: ook37 --- misc/scripts/checks.sh | 83 ++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 55 deletions(-) diff --git a/misc/scripts/checks.sh b/misc/scripts/checks.sh index 04d1ebdb6..d18e2ae0c 100755 --- a/misc/scripts/checks.sh +++ b/misc/scripts/checks.sh @@ -210,45 +210,35 @@ function lint_maintainer() { return 0 } -function lint_makedepends() { - local ret=0 makedepend idx=0 - if [[ -n ${makedepends[*]} ]]; then - for makedepend in "${makedepends[@]}"; do - if [[ -z ${makedepend} ]]; then - fancy_message error "'makedepends' index '${idx}' cannot be empty" - ret=1 - fi - ((idx++)) - done - fi - return "${ret}" +function lint_pipe_check() { + perl -ne 'exit 1 unless /^(?:[^\s|:]+(?::[^\s|:]+)?\s\|\s)+[^\s|:]+(?::[^\s|:]+)?(?::\s[^|:]+)?(?