Commit aa2e295f authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: fix alt c10* branch detection

parent 8f5adf19
......@@ -496,10 +496,10 @@ esac
case "$DISTRIB_ID" in
"ALTLinux")
echo "$VERSION" | grep -q "c9.* branch" && DISTRIB_RELEASE="c9"
echo "$VERSION" | grep -q "c9f1 branch" && DISTRIB_RELEASE="c9f1"
echo "$VERSION" | grep -q "c9f2 branch" && DISTRIB_RELEASE="c9f2"
echo "$VERSION" | grep -q "c9f3 branch" && DISTRIB_RELEASE="c9f3"
echo "$VERSION" | grep -q "c9\.* branch" && DISTRIB_RELEASE="c9"
if echo "$VERSION" | grep -q -E "c[0-9]+f[1-9] branch" ; then
DISTRIB_RELEASE="$(echo "$VERSION" | sed 's| branch||')"
fi
DISTRIB_CODENAME="$DISTRIB_RELEASE"
# FIXME: fast hack for fallback: 10.1 -> p10 for /etc/os-release
if echo "$DISTRIB_RELEASE" | grep -q "^0" ; then
......
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