Skip to content

Commit 066f02b

Browse files
committed
helpers: teach aptUpdate to hop releases
When the release of the remote repository is changed, `apt-get` will not update its packages without `--allow-releaseinfo-change`, so fix that.
1 parent 3d841d1 commit 066f02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function hasPackage() {
175175
## @brief Calls apt-get update (if it has not been called before).
176176
function aptUpdate() {
177177
if [[ "$__apt_update" != "1" ]]; then
178-
apt-get update
178+
apt-get update --allow-releaseinfo-change
179179
__apt_update="1"
180180
fi
181181
}

0 commit comments

Comments
 (0)