###
# MESALIB_GIT => MESALIB_VER

if [[ $MESALIB_GIT == "y" ]]; then
  persistent_add MESALIB_VER    &&
  MESALIB_VER="git"             &&
  persistent_remove MESALIB_GIT
fi

if [[ $MESALIB_GIT == "n" ]]; then
  persistent_add MESALIB_VER    &&
  MESALIB_VER="stable"          &&
  persistent_remove MESALIB_GIT
fi
###

config_query_list MESALIB_VER "Which version would you like to build?" \
                  stable       \
                  feature      \
                  developement \
                  git          &&

if [[ "$MESALIB_VER" == "git" ]]; then
  config_query MESALIB_GIT_AUTOUPDATE                                  \
               "Queue for update on every system update?" n
fi
