Modernize sources list for containerized package manager

此提交包含在:
2025-04-23 23:55:24 -04:00
父節點 1b40fbe4dc
當前提交 3f27ec65d9

查看文件

@@ -435,15 +435,15 @@ get_latest_mc_version() {
if install_package --silent buildah &&
cnt=$(buildah from --quiet alpine:edge 2>/dev/null) &&
buildah run "$cnt" -- sh -c '
apk add apt &>/dev/null
cat <<EOF > /etc/apt/sources.list.d/jriver.sources
Types: deb
URIs: https://dist.jriver.com/latest/mediacenter/
Suites: '"$1"'
Components: main
Architectures: amd64,armhf,arm64
EOF
apt update --allow-insecure-repositories &>/dev/null' &&
apk add apt &>/dev/null
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
Types: deb
URIs: https://dist.jriver.com/latest/mediacenter/
Suites: '"$1"'
Components: main
Architectures: amd64,armhf,arm64
EOF
apt update --allow-insecure-repositories &>/dev/null' &&
MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
[[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
mc_version_source="containerized package manager"