From 4fc6e4501ff17427a51a49103775b5755eb31b6b Mon Sep 17 00:00:00 2001 From: ook37 Date: Fri, 29 Mar 2024 21:18:36 -0400 Subject: [PATCH] do the checks for constraints --- misc/scripts/checks.sh | 65 +++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 39 deletions(-) diff --git a/misc/scripts/checks.sh b/misc/scripts/checks.sh index 04d1ebdb6..620a8629c 100755 --- a/misc/scripts/checks.sh +++ b/misc/scripts/checks.sh @@ -210,45 +210,32 @@ 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_depends() { - local ret=0 depend idx=0 - if [[ -n ${depends[*]} ]]; then - for depend in "${depends[@]}"; do - if [[ -z ${depend} ]]; then - fancy_message error "'depends' 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[^|:]+)?(?