Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 8: [PATCH 08/17] chore(roots): integrate v31 identity and maintenance tooling

ci/test/apt.sh

Before: /dev/null · After: ci/test/apt.sh

File metadata
new file mode 100755
index 0000000000000000000000000000000000000000..081b759ce31bfa8b475f9aac6d3354797f2a2748

Download original patch · Release notes

Diff rows 1–17 of 17. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

ci/test/apt.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Copyright (c) 2026-present The Bitcoin Core developers
4
+ # Distributed under the MIT software license, see the accompanying
5
+ # file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
+
7
+ export LC_ALL=C
8
+
9
+ # Shared APT refresh helper for Linux CI scripts. CI_RETRY_EXE is a
10
+ # space-separated command supplied by ci/test/00_setup_env.sh (normally
11
+ # "retry --"), so split it once into an argv array before execution.
12
+ ci_retry_apt_update()
13
+ {
14
+ local -a retry_command
15
+ read -r -a retry_command <<< "${CI_RETRY_EXE:?CI_RETRY_EXE must be set}"
16
+ "${retry_command[@]}" apt-get -o APT::Update::Error-Mode=any update
17
+ }