Skip to content

Commit

Permalink
update: correct multi-repo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 28, 2021
1 parent 99b5aae commit 9abe08e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update/opnsense-update.sh.in
Expand Up @@ -500,7 +500,7 @@ if [ "${DO_PKGS}" = "-p" -a -z "${DO_UPGRADE}${DO_SIZE}" ]; then
recover_origin ${CORE}
elif ! diff -uq ${WORKDIR}/${PRODUCT}.conf ${ORIGIN}; then
# rerun sync before there are any complaints
${PKG} update ${DO_FORCE} || true
${PKG} update ${DO_FORCE}
fi
${PKG} autoremove -y
${PKG} check -yda
Expand Down Expand Up @@ -771,7 +771,8 @@ install_pkgs()

# run full upgrade from the local repository
${TEE} ${LOGFILE} < ${PIPEFILE} &
if (${PKG} update -f && ${PKG} upgrade -fy -r ${PRODUCT}) > ${PIPEFILE} 2>&1; then
if (${PKG} update -f -r ${PRODUCT} && \
${PKG} upgrade -fy -r ${PRODUCT}) > ${PIPEFILE} 2>&1; then
# re-register local packages repository
# since the successful upgrade reset it
register_pkgs
Expand Down

0 comments on commit 9abe08e

Please sign in to comment.