Commit bbe36de7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: check available glibc, not distro version

parent c920b4f3
......@@ -22,13 +22,8 @@ case $pkgtype in
;;
esac
case "$(epm print info -s)" in
alt)
# uses old glibc needed for ALT p10
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
epm install --repack $PKG
exit
;;
esac
if ! is_glibc_enough 2.35 ; then
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
fi
epm install "$PKG"
......@@ -8,7 +8,7 @@ DESCRIPTION="Google Chromium, sans integration with Google from the official sit
. $(dirname $0)/common.sh
# keep old version due libc.so.6(GLIBC_2.33)(64bit)
if [ "$VERSION" = "*" ] && [ "$(epm print info -s)" = "alt" ] && [ "$(epm print info -r)" = "p10" ] ; then
if [ "$VERSION" = "*" ] && ! is_glibc_enough 2.35 ; then
VERSION="113.0.5672.127"
fi
......
......@@ -18,15 +18,10 @@ vendor=$(epm print info -s)
case $vendor in
alt)
if [ "$VERSION" = "*" ] ; then
case $reponame in
p10)
VERSION="3.3.0"
;;
*)
VERSION="3.4.2"
;;
esac
if is_glibc_enough 2.35 ; then
VERSION="3.4.2"
else
VERSION="3.3.0"
fi
PKGURL=https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_$arch/unityhub-amd64-$VERSION.deb
epm install --repack "$PKGURL"
......@@ -34,22 +29,7 @@ case $vendor in
;;
esac
case $vendor/$reponame in
alt/Sisyphus)
epm repo addkey "https://angie.software/keys/angie-signing.gpg" "EB8EAF3D4EF1B1ECF34865A2617AB978CB849A76" "Angie (Signing Key) <devops@tech.wbsrv.ru>" angie
epm repo add "rpm [angie] https://download.angie.software/angie/altlinux/10/ x86_64 main"
epm update
epm install $PKGNAME
;;
alt/p10)
epm repo addkey "https://angie.software/keys/angie-signing.gpg" "EB8EAF3D4EF1B1ECF34865A2617AB978CB849A76" "Angie (Signing Key) <devops@tech.wbsrv.ru>" angie
epm repo add "rpm [angie] https://download.angie.software/angie/altlinux/10/ x86_64 main"
epm update
epm install $PKGNAME
;;
esac
echo "Adding vendor repo ..."
case $(epm print info -p) in
rpm)
......@@ -63,7 +43,6 @@ case $(epm print info -p) in
;;
esac
epm update
epm install $PKGNAME
exit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment