finddeps: Unset optdepends
The optdepends array should be unset before sourcing the PKGBUILD to avoid dangling optional depends. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
84b789f760
commit
dcb80e7b5c
|
@ -16,7 +16,7 @@ fi
|
|||
|
||||
find . -type d | while read d; do
|
||||
if [[ -f "$d/PKGBUILD" ]]; then
|
||||
unset pkgname depends makedepends
|
||||
unset pkgname depends makedepends optdepends
|
||||
. "$d/PKGBUILD"
|
||||
for dep in "${depends[@]}"; do
|
||||
# lose the version comparator, if any
|
||||
|
|
Loading…
Reference in New Issue