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[^|:]+)?(?