Commit cd4115bd authored by Leo's avatar Leo

alint: don't check checkdepends if check is not enabled

parent 068ca085
......@@ -158,11 +158,15 @@ for apkbuild; do
if [ ! -z "$checkdepends" ]; then
# We don't want to check for packages in upper repos for checkdepends if we
# don't have 'check' enabled.
if [ ! -z "${options##*!check*}" ]; then
printf "%s\n" "$checkdepends" | tr " " "\n" | sort -u | while read -r pkg; do
for p in $(find_repo "$pkg" "$_repo"); do
printf "$apkbuild:: checkdepends '$pkg' is in upper repo '$p'\n"
printf "%s\n" "$checkdepends" | tr " " "\n" | sort | uniq -d | while read -r dup; do
[ -z "$dup" ] && continue
printf "$apkbuild:: duplicate '$dup' in checkdepends\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment