v29.4-roots.3 · Commit 22: [PATCH 22/30] ci: consolidate sanitizer and apt workflows
ci/test/apt.sh
Before: /dev/null · After: ci/test/apt.sh
File metadata
new file mode 100644 index 0000000000000000000000000000000000000000..9008e0538927f06385f72d5f9dafb339117ccf62
Download original patch · Release notes
Diff rows 1–15 of 15. 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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# Shared APT refresh helper for Linux CI scripts. CI_RETRY_EXE is a
|
| 8 |
+
# space-separated command supplied by ci/test/00_setup_env.sh (normally
|
| 9 |
+
# "retry --"), so split it once into an argv array before execution.
|
| 10 |
+
ci_retry_apt_update()
|
| 11 |
+
{
|
| 12 |
+
local -a retry_command
|
| 13 |
+
read -r -a retry_command <<< "${CI_RETRY_EXE:?CI_RETRY_EXE must be set}"
|
| 14 |
+
"${retry_command[@]}" apt-get -o APT::Update::Error-Mode=any update
|
| 15 |
+
}
|