git-svn-id: http://emdebian.org/svn/current@7323 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2010-07-08 11:27:28 +00:00
parent ea8a5a5f37
commit 85b4938c84

View file

@ -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