修改离线脚本
This commit is contained in:
parent
5dee9a4d52
commit
65c45c9ce0
@ -53,11 +53,9 @@ done
|
||||
case ${TARGET_ARCH} in
|
||||
x86_64)
|
||||
ARCH_SUFFIX="x86_64"
|
||||
YUM_ARCH="--forcearch=x86_64"
|
||||
;;
|
||||
i686|i386)
|
||||
ARCH_SUFFIX="i686"
|
||||
YUM_ARCH="--forcearch=i686"
|
||||
;;
|
||||
*)
|
||||
log_error "Unsupported architecture: ${TARGET_ARCH}"
|
||||
@ -114,12 +112,12 @@ log_info "Downloading system packages and their dependencies..."
|
||||
|
||||
# Define base packages
|
||||
PACKAGES=(
|
||||
"cmake3"
|
||||
"nlohmann-json-devel"
|
||||
"boost-devel.${ARCH_SUFFIX}"
|
||||
"openssl-devel"
|
||||
"python3"
|
||||
"python3-pip"
|
||||
"cmake3.x86_64"
|
||||
"nlohmann-json-devel.x86_64"
|
||||
"boost-devel.x86_64"
|
||||
"openssl-devel.x86_64"
|
||||
"python3.x86_64"
|
||||
"python3-pip.x86_64"
|
||||
"@Development Tools"
|
||||
)
|
||||
|
||||
@ -146,7 +144,7 @@ log_info "Downloading packages..."
|
||||
DOWNLOAD_FAILED=0
|
||||
while read -r pkg; do
|
||||
log_info "Downloading $pkg..."
|
||||
if ! yum install ${YUM_ARCH} --downloadonly --downloaddir="${PACKAGES_DIR}" "$pkg"; then
|
||||
if ! yum --forcearch=${TARGET_ARCH} install --downloadonly --downloaddir="${PACKAGES_DIR}" "$pkg"; then
|
||||
log_error "Failed to download $pkg"
|
||||
DOWNLOAD_FAILED=1
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user