Add `-A' flag to pkg-install(8) invocation when installing dependencies.

MFC after:	3 days
X-MFC-to:	stable/10, stable/9
Reported by:	gjb
Discussed with:	jelischer, gjb, bdrewery
This commit is contained in:
dteske 2014-08-21 17:15:09 +00:00
parent aa773326bf
commit 2ba2c913b5

View File

@ -1029,9 +1029,11 @@ f_package_extract()
# Request the package be added via pkg-install(8) # Request the package be added via pkg-install(8)
if f_debugging; then if f_debugging; then
f_eval_catch $funcname pkg 'pkg -d install -y "%s"' "$name" f_eval_catch $funcname pkg \
'pkg -d install -${depended:+A}y "%s"' "$name"
else else
f_eval_catch $funcname pkg 'pkg install -y "%s"' "$name" f_eval_catch $funcname pkg \
'pkg install -${depended:+A}y "%s"' "$name"
fi fi
if [ $? -ne $SUCCESS ]; then if [ $? -ne $SUCCESS ]; then
$alert "$msg_pkg_install_apparently_did_not_like_the_package" \ $alert "$msg_pkg_install_apparently_did_not_like_the_package" \