From 85b4938c84005b49f8a373082e1f251945c74c76 Mon Sep 17 00:00:00 2001 From: codehelp Date: Thu, 8 Jul 2010 11:27:28 +0000 Subject: [PATCH] tweak git-svn-id: http://emdebian.org/svn/current@7323 563faec7-e20c-0410-992a-a66f704d0ccd --- check-deps.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/check-deps.sh b/check-deps.sh index 3a55abd..aff9451 100755 --- a/check-deps.sh +++ b/check-deps.sh @@ -37,6 +37,10 @@ case "$1" in shift INSTALL=1 ;; + -y|--yes) + shift + YES=1 + ;; *) echo "Unrecognised option: $1" exit; @@ -80,7 +84,9 @@ for pkg in $DEPS; do ERR="$ERR $name ($VERCMP $VERLIMIT) " fi fi - CMD="$CMD $name" + if [ -n "$YES" ]; then + CMD="$CMD -y $name" + fi done if [ -n "$ERR" ]; then echo Some packages are not available: $ERR