1
0
Fork 0
forked from mirrors/openup

Simplify pkg updates and do not call `-u' against a pkg list, otherwise

we may ebd up updating packages we do not want (e.g. moving from
squid-2.7 to squid-3 -- where both packages are available).

Fixes #7257
This commit is contained in:
Antoine Jacoutot 2014-04-19 17:35:27 +02:00
commit 195cbe37b6

5
openup
View file

@ -186,11 +186,10 @@ update_binpatches() {
update_pkg() {
local _CMD _PKG
_PKG=$(pkg_info -q | perl -ne '/^(.*)-(\d[^-]*)[-]?(\w*)(.*)$/ && print "$1\n"' | \
grep -v binpatch${_REL_INT}-${_ARCH})
_PKG=$(pkg_info -q | grep -v binpatch${_REL_INT}-${_ARCH})
pr_bigarrow "Updating package(s)"
_CMD="pkg_add -u ${pkg_opt}"
_CMD="pkg_add -qrz ${pkg_opt}"
pr_smallarrow "${_CMD}"
# we don't want to display ${_PKG}, there could be hundreds
_CMD="${_CMD} ${_PKG}"