build: support build on garudalinux
This commit is contained in:
4
deps/init/dep_create.sh
vendored
4
deps/init/dep_create.sh
vendored
@ -80,7 +80,7 @@ function get_os_release() {
|
|||||||
uos)
|
uos)
|
||||||
version_ge "20" && compat_centos7 && return
|
version_ge "20" && compat_centos7 && return
|
||||||
;;
|
;;
|
||||||
arch)
|
arch | garuda)
|
||||||
compat_centos8 && return
|
compat_centos8 && return
|
||||||
;;
|
;;
|
||||||
rocky)
|
rocky)
|
||||||
@ -259,7 +259,7 @@ do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo_log "unpack package <${pkg}>... \c"
|
echo_log "unpack package <${pkg}>... \c"
|
||||||
if [ "$ID" = "arch" ]; then
|
if [[ "$ID" = "arch" || "$ID" = "garuda" ]]; then
|
||||||
(cd ${TARGET_DIR_3RD} && rpmextract.sh "${TARGET_DIR_3RD}/pkg/${pkg}")
|
(cd ${TARGET_DIR_3RD} && rpmextract.sh "${TARGET_DIR_3RD}/pkg/${pkg}")
|
||||||
else
|
else
|
||||||
(cd ${TARGET_DIR_3RD} && rpm2cpio "${TARGET_DIR_3RD}/pkg/${pkg}" | cpio -di -u --quiet)
|
(cd ${TARGET_DIR_3RD} && rpm2cpio "${TARGET_DIR_3RD}/pkg/${pkg}" | cpio -di -u --quiet)
|
||||||
|
|||||||
Reference in New Issue
Block a user