From 5c2c9f05ad6dc75e42c748e90edf89e64babc701 Mon Sep 17 00:00:00 2001
From: Alexander Leidinger <netchild@FreeBSD.org>
Date: Thu, 30 Aug 2007 16:48:33 +0000
Subject: One more sanity check, else /+CONTENS will be searched.

---
 Tools/scripts/explicit_lib_depends.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Tools/scripts/explicit_lib_depends.sh b/Tools/scripts/explicit_lib_depends.sh
index f281b45a79ae..afd8e289ccd7 100755
--- a/Tools/scripts/explicit_lib_depends.sh
+++ b/Tools/scripts/explicit_lib_depends.sh
@@ -92,6 +92,11 @@ for i in $@; do
 		fi
 	fi
 
+	if [ ! -f ${current_port}/+CONTENTS ]; then
+		echo $i is not a valid port
+		continue
+	fi
+
 	myorigin=$(awk -F : '/@comment ORIGIN:/ {print $2}' \
 		${current_port}/+CONTENTS)
 
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0