Commit 41c161f5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

ignore dot part of the version for ALT (9.0 -> p9)

parent cfe12d3b
......@@ -226,7 +226,7 @@ fi
if distro altlinux-release ; then
DISTRIB_ID="ALTLinux"
# FIXME: fast hack for fallback: 10 -> p10 for /etc/os-release
DISTRIB_RELEASE="p$DISTRIB_RELEASE"
DISTRIB_RELEASE="$(echo p$DISTRIB_RELEASE | sed -e 's|\..*||')"
if has Sisyphus ; then DISTRIB_RELEASE="Sisyphus"
elif has "ALT p10.* p10 " ; then DISTRIB_RELEASE="p10"
elif has "ALT c10.* c10 " ; then DISTRIB_RELEASE="c10"
......
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