Use a variable for apt packages
Since the package list is used in two places this will reduce risks of
changing in one place but not another.
@@ -298,6 +298,13 @@ function install_deps() {
elif os_is_like debian || os_is debian || os_is_like ubuntu || os_is ubuntu || os_is linuxmint; then
# Debian / Ubuntu / Mint
echo "$GREEN Installing packages for Debian/Ubuntu/Mint...$RESET"
+
+ APT_PACKAGE_LIST="git python3 python3-dev python3-setuptools libtool \
+ libffi-dev libssl-dev autoconf automake bison swig libglib2.0-dev \
+ portaudio19-dev mpg123 screen flac curl libicu-dev pkg-config \
+ libjpeg-dev libfann-dev build-essential jq pulseaudio \
+ pulseaudio-utils"
+
if dpkg -V libjack-jackd2-0 > /dev/null 2>&1 && [[ -z ${CI} ]] ; then
echo "
We have detected that your computer has the libjack-jackd2-0 package installed.
@@ -305,9 +312,9 @@ Mycroft requires a conflicting package, and will likely uninstall this package.
On some systems, this can cause other programs to be marked for removal.
Please review the following package changes carefully."
read -p "Press enter to continue"
- $SUDO apt-get install git python3 python3-dev python3-setuptools libtool libffi-dev libssl-dev autoconf automake bison swig libglib2.0-dev portaudio19-dev mpg123 screen flac curl libicu-dev pkg-config libjpeg-dev libfann-dev build-essential jq pulseaudio pulseaudio-utils
+ $SUDO apt-get install $APT_PACKAGE_LIST
else
- $SUDO apt-get install -y git python3 python3-dev python3-setuptools libtool libffi-dev libssl-dev autoconf automake bison swig libglib2.0-dev portaudio19-dev mpg123 screen flac curl libicu-dev pkg-config libjpeg-dev libfann-dev build-essential jq pulseaudio pulseaudio-utils
+ $SUDO apt-get install -y $APT_PACKAGE_LIST
fi
elif os_is_like fedora || os_is fedora; then
echo "$GREEN Installing packages for Fedora...$RESET"
