mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-26 00:06:02 +00:00
fix(agent): the setup install repairs broken package dependencies instead of stopping (#2901)
* fix(agent): the setup install repairs broken package dependencies instead of stopping * fix(agent): retry the package refresh and fetch missing archives during the setup install
This commit is contained in:
1 parent
d4af37937a
commit
fc9ad2447d
1 file changed
+5
-2
@@ -141,8 +141,11 @@ object AgentSetup {
|
|||||||
Step.CONNECTION -> return
|
Step.CONNECTION -> return
|
||||||
Step.INSTALL -> {
|
Step.INSTALL -> {
|
||||||
listOf("sh", "-c", "set -e; export DEBIAN_FRONTEND=noninteractive; " +
|
listOf("sh", "-c", "set -e; export DEBIAN_FRONTEND=noninteractive; " +
|
||||||
"dpkg --configure -a; apt-get update || echo 'Some package sources could not be refreshed; continuing'; apt-get -f install -y; " +
|
"apt() { apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=30 \"\$@\"; }; " +
|
||||||
"apt-get install -y --no-install-recommends git gh adb curl ca-certificates python3; ${harness.install}")
|
"dpkg --configure -a || echo 'Some packages are not configured yet; repairing dependencies'; " +
|
||||||
|
"for i in 1 2 3; do apt update -q && break; echo 'Some package sources could not be refreshed; retrying'; sleep 3; done; " +
|
||||||
|
"apt -f install -y --fix-missing; " +
|
||||||
|
"apt install -y --fix-missing --no-install-recommends git gh adb curl ca-certificates python3; ${harness.install}")
|
||||||
}
|
}
|
||||||
Step.SIGN_IN -> harness.signIn
|
Step.SIGN_IN -> harness.signIn
|
||||||
Step.GITHUB -> listOf("dd-gh-login")
|
Step.GITHUB -> listOf("dd-gh-login")
|
||||||
|
|||||||
Reference in new issue
Block a user