From f79dc9e22b78773e7df3cfc15dff2613477362e6 Mon Sep 17 00:00:00 2001 From: Tian jianyong <11429339@qq.com> Date: Thu, 19 Dec 2024 19:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=BB=E7=BA=BF=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/prepare_offline_packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare_offline_packages.sh b/scripts/prepare_offline_packages.sh index f586291..5cfe9ef 100644 --- a/scripts/prepare_offline_packages.sh +++ b/scripts/prepare_offline_packages.sh @@ -144,7 +144,7 @@ log_info "Downloading packages..." DOWNLOAD_FAILED=0 while read -r pkg; do log_info "Downloading $pkg..." - if ! yum --forcearch=${TARGET_ARCH} install --downloadonly --downloaddir="${PACKAGES_DIR}" "$pkg"; then + if ! yum install --downloadonly --downloaddir="${PACKAGES_DIR}" "$pkg"; then log_error "Failed to download $pkg" DOWNLOAD_FAILED=1 fi