Commit 31111b0c authored by Leo's avatar Leo

fix the new lint tag

parent 7326f29a
...@@ -154,7 +154,8 @@ depends_makedepends_checkdepends_overlap() { ...@@ -154,7 +154,8 @@ depends_makedepends_checkdepends_overlap() {
fi fi
done done
# Don't check against checkdepends if it is empty # Don't check against checkdepends if it is empty, no need to check for
# makedepends because the loop just won't run if it is empty.
[ -z "$checkdepends" ] && return 0 [ -z "$checkdepends" ] && return 0
for d in $makedepends; do for d in $makedepends; do
if printf "%s\\n" "$_ckdeps" | grep -q "^$d$"; then if printf "%s\\n" "$_ckdeps" | grep -q "^$d$"; then
...@@ -188,11 +189,14 @@ for apkbuild; do ...@@ -188,11 +189,14 @@ for apkbuild; do
upper_repo_depends & upper_repo_depends &
duplicate_depends & duplicate_depends &
fi fi
# This can be run if either 2 of the 3 are not empty
# depends makedepends checkdepends
depends_makedepends_checkdepends_overlap &
if [ ! -z "$makedepends" ]; then if [ ! -z "$makedepends" ]; then
upper_repo_makedepends & upper_repo_makedepends &
duplicate_makedepends & duplicate_makedepends &
depends_makedepends_checkdepends_overlap &
fi fi
if [ ! -z "$checkdepends" ]; then if [ ! -z "$checkdepends" ]; then
......
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