Skip to content

Commit

Permalink
Invoke apt update initially
Browse files Browse the repository at this point in the history
Because the github runner image could be without any metadata indices
  • Loading branch information
rickysarraf committed Mar 27, 2024
1 parent fadae11 commit 89688e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/apt-offline-tests-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ set_features () {
# Needs root
APT_OFFLINE="sudo $APT_OFFLINE"

run "sudo apt update"

run "$APT_OFFLINE set $URI --simulate --update --upgrade"

run "$APT_OFFLINE set $URI --update"
Expand Down Expand Up @@ -58,6 +60,8 @@ get_features () {
URI=$1
fi

run "sudo apt update"

run "$APT_OFFLINE get $URI --quiet --bundle $BUNDLE_FILE"
rm -f $BUNDLE_FILE

Expand Down Expand Up @@ -88,6 +92,8 @@ install_features () {
# Needs root
APT_OFFLINE="sudo $APT_OFFLINE"

run "sudo apt update"

run "$APT_OFFLINE install $DOWNLOAD_DIR --skip-bug-reports"

run "$APT_OFFLINE install $DOWNLOAD_DIR --skip-bug-reports --allow-unauthenticated"
Expand All @@ -106,6 +112,8 @@ install_features_prompt () {
# Needs root
APT_OFFLINE="sudo $APT_OFFLINE"

run "sudo apt update"

run "$APT_OFFLINE install $DOWNLOAD_DIR"

run "$APT_OFFLINE install $DOWNLOAD_DIR --simulate"
Expand Down

0 comments on commit 89688e7

Please sign in to comment.