Commit dcb80e7b authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

finddeps: Unset optdepends



The optdepends array should be unset before sourcing the PKGBUILD to avoid
dangling optional depends.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 84b789f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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