Skip to content

Commit

Permalink
update: fix pkg+ lookup now that it is gone; closes opnsense#87
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 26, 2023
1 parent 55e977e commit bd59f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update/opnsense-update.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ fi

if [ -n "${DO_MIRRORURL}" ]; then
# replace the package repo location
sed -i '' '/'"${URL_KEY}"'/s/pkg\+.*${ABI}/pkg\+'"${DO_MIRRORURL#"-m "}"'\/${ABI}/' ${ORIGIN}
sed -i '' '/'"${URL_KEY}"'/s/".*${ABI}/"'"${DO_MIRRORURL#"-m "}"'\/${ABI}/' ${ORIGIN}
fi

if [ -n "${DO_MIRRORABI}" ]; then
Expand Down Expand Up @@ -864,7 +864,7 @@ register_pkgs()
# We can't recover from this replacement, but
# since the manual says we require a reboot
# after `-P', it is to be considered a feature.
sed -i '' '/'"${URL_KEY}"'/s/pkg\+.*/file:\/\/\/var\/cache\/opnsense-update\/.sets.pending\/packages-'"${RELEASE}"'\",/' ${ORIGIN}
sed -i '' '/'"${URL_KEY}"'/s/".*/"file:\/\/\/var\/cache\/opnsense-update\/.sets.pending\/packages-'"${RELEASE}"'\",/' ${ORIGIN}

if [ -n "${DO_INSECURE}" ]; then
# Insecure meant we didn't have any sets signatures,
Expand Down

0 comments on commit bd59f2d

Please sign in to comment.