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:
parent
08928ff242
commit
195cbe37b6
1 changed files with 2 additions and 3 deletions
5
openup
5
openup
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue