[arch-projects] [devtools] [PATCH 4/4] finddeps: Unset optdepends

Lukas Fleischer archlinux at cryptocrack.de
Thu Oct 13 02:24:30 EDT 2011


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

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 finddeps |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/finddeps b/finddeps
index 3f4515b..4651fd9 100755
--- a/finddeps
+++ b/finddeps
@@ -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
-- 
1.7.7



More information about the arch-projects mailing list