@stll/oxlint-config 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,9 +42,11 @@ apt_install() (
|
|
|
42
42
|
local package
|
|
43
43
|
for package in "$@"; do
|
|
44
44
|
if [[ "$package" == */* ]]; then
|
|
45
|
-
# apt cannot fetch local archives with --download-only
|
|
46
|
-
#
|
|
47
|
-
|
|
45
|
+
# apt cannot fetch local archives with --download-only, so their installs
|
|
46
|
+
# stay one call. Package triggers can be slow on cloud filesystems; the
|
|
47
|
+
# longer whole-call deadline covers them while Acquire timeouts still
|
|
48
|
+
# bound each network request.
|
|
49
|
+
APT_DEADLINE=600 DEBIAN_FRONTEND=noninteractive apt_network install -y --no-install-recommends "$@"
|
|
48
50
|
return
|
|
49
51
|
fi
|
|
50
52
|
done
|
|
@@ -305,7 +307,8 @@ apt_network() {
|
|
|
305
307
|
# --print-uris reads configured indexes without contacting their servers.
|
|
306
308
|
hosts="$(set -o pipefail; apt-get --print-uris update | awk -F/ '/^\047https?:\/\// { host=$3; sub(/.*@/, "", host); if (!seen[host]++) { printf "%s%s", separator, host; separator="," } }')" || return "$?"
|
|
307
309
|
[[ -n "$hosts" ]] || hosts='configured APT hosts'
|
|
308
|
-
|
|
310
|
+
# APT_DEADLINE: whole-call seconds; callers that also unpack packages may extend it.
|
|
311
|
+
network_run "$hosts" "${"$"}{APT_DEADLINE:-180}" apt-get -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 -o Acquire::Retries=3 -o APT::Update::Error-Mode=any "$@"
|
|
309
312
|
}
|
|
310
313
|
apt_refresh_for() {
|
|
311
314
|
# Skip the refresh only when the install downloads nothing: then no package
|