Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Featrue](mlu-ops): Add support for Anolis #1072

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions independent_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,32 @@ prepare_cntoolkit () {
prog_log_info "${arr_modules[$i]} url: ${REAL_PATH}"
wget -A rpm -m -p -E -k -K -np -q --reject-regex 'static' ${PACKAGE_PATH}

pushd ${PACKAGE_EXTRACT_DIR} > /dev/null
for filename in ../${REAL_PATH}*.rpm; do
prog_log_info "extract ${filename}"
rpm2cpio $filename | cpio -u -di
if [ ${arr_modules[$i]} == "cntoolkit" ]; then
pure_ver=`echo ${arr_vers[$i]} | cut -d '-' -f 1`
for pkg in ${sub_pkg_to_extract[@]}
do
local fname=$(ls -1 ./var/cntoolkit-${pure_ver}/${pkg}* | grep -E "${pkg}[^[:alnum:]][0-9].*")
prog_log_info "extract ${fname}"
rpm2cpio ${fname} | cpio -u -di
done
fi
done
popd > /dev/null
done
elif [ ${ID} == "anolis" ]; then
for (( i =0; i < ${n}; i++))
do
PACKAGE_DIST="Anolis"
PACKAGE_DIST_VER=${VERSION_ID}
PACKAGE_PATH=${PACKAGE_SERVER}"/"${arr_branch[$i]}"/"${arr_modules[$i]}"/"${PACKAGE_OS}"/"${PACKAGE_ARCH}"/"${PACKAGE_DIST}"/"${PACKAGE_DIST_VER}"/"${arr_vers[$i]}"/"
REAL_PATH=`echo ${PACKAGE_PATH} | awk -F '//' '{print $2}'`
prog_log_info "${arr_modules[$i]} url: ${REAL_PATH}"
wget -A rpm -m -p -E -k -K -np -q --reject-regex 'static' ${PACKAGE_PATH}

pushd ${PACKAGE_EXTRACT_DIR} > /dev/null
for filename in ../${REAL_PATH}*.rpm; do
prog_log_info "extract ${filename}"
Expand Down
Loading