mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
[experimental] nit: try to speed up apt-install 2 (#10164)
This commit is contained in:
21
.github/workflows/shell-tool-mcp.yml
vendored
21
.github/workflows/shell-tool-mcp.yml
vendored
@@ -254,14 +254,19 @@ jobs:
|
|||||||
if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-musl" ]] && [[ -f /etc/os-release ]]; then
|
if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-musl" ]] && [[ -f /etc/os-release ]]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
if [[ "${ID-}" == "ubuntu" ]]; then
|
if [[ "${ID-}" == "ubuntu" ]]; then
|
||||||
codename="${VERSION_CODENAME:-}"
|
if [[ -f /etc/apt/sources.list.d/ubuntu.sources ]]; then
|
||||||
if [[ -n "$codename" ]]; then
|
# Ubuntu 24.04+ uses deb822 sources; trim components to main.
|
||||||
printf '%s\n' \
|
sed -i -E 's/^Components:.*/Components: main/' /etc/apt/sources.list.d/ubuntu.sources
|
||||||
"deb http://ports.ubuntu.com/ubuntu-ports ${codename} main" \
|
else
|
||||||
"deb http://ports.ubuntu.com/ubuntu-ports ${codename}-updates main" \
|
codename="${VERSION_CODENAME:-}"
|
||||||
"deb http://ports.ubuntu.com/ubuntu-ports ${codename}-backports main" \
|
if [[ -n "$codename" ]]; then
|
||||||
"deb http://ports.ubuntu.com/ubuntu-ports ${codename}-security main" \
|
printf '%s\n' \
|
||||||
>/etc/apt/sources.list
|
"deb http://ports.ubuntu.com/ubuntu-ports ${codename} main" \
|
||||||
|
"deb http://ports.ubuntu.com/ubuntu-ports ${codename}-updates main" \
|
||||||
|
"deb http://ports.ubuntu.com/ubuntu-ports ${codename}-backports main" \
|
||||||
|
"deb http://ports.ubuntu.com/ubuntu-ports ${codename}-security main" \
|
||||||
|
>/etc/apt/sources.list
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user