mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
fix(ci): allow complete fallback package index downloads
This commit is contained in:
@@ -8,8 +8,8 @@ fi
|
||||
|
||||
bash "$(dirname "${BASH_SOURCE[0]}")/prepare-ubuntu-apt.sh"
|
||||
|
||||
# Both routes and diagnostics fit the previous seven-minute package setup budget.
|
||||
if timeout 45 sudo apt-get update && timeout 120 sudo apt-get install -y "$@"; then
|
||||
# Eight minutes of command allowances leave room for tests within the job deadline.
|
||||
if timeout 45 sudo apt-get update -o Acquire::Languages=none && timeout 120 sudo apt-get install -y "$@"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -31,7 +31,7 @@ done
|
||||
# A timed-out install may leave a transaction that apt cannot resume itself.
|
||||
timeout 30 sudo dpkg --configure -a || true
|
||||
# Unrelated repositories may fail refresh; apt still verifies the requested packages.
|
||||
if ! timeout 60 sudo apt-get update; then
|
||||
if ! timeout 120 sudo apt-get update -o Acquire::Languages=none; then
|
||||
echo 'Index refresh incomplete; attempting the requested packages with available authenticated indexes.' >&2
|
||||
fi
|
||||
timeout 150 sudo apt-get install -y "$@"
|
||||
|
||||
Reference in New Issue
Block a user