From 38f85d654aa93401fd90cbe44994ea894f73635f Mon Sep 17 00:00:00 2001 From: Ray Rashif Date: Tue, 5 Oct 2010 17:11:44 +0800 Subject: support optdepends Signed-off-by: Pierre Schmitz --- finddeps | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'finddeps') diff --git a/finddeps b/finddeps index c47518a..fcf18db 100755 --- a/finddeps +++ b/finddeps @@ -34,6 +34,13 @@ for d in $(find . -type d); do echo "$d (makedepends)" fi done + for dep in "${optdepends[@]/:*}"; do + # lose the version comaparator, if any + depname=${dep%%[<>=]*} + if [ "$depname" = "$match" ]; then + echo "$d (optdepends)" + fi + done fi cd $tld done -- cgit v1.2.3-24-g4f1b