Skip to content
Snippets Groups Projects
Commit 982ed28a authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Convert uck_functions (lang support) to apt-get

parent 12570b3a
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,12 @@ function install_lang_packages()
MISSING_LANG_PKG="$(check-language-support -l en_US) $MISSING_LANG_PKG" # check for missing packages for de_DE and en_US
if [ -n "$MISSING_LANG_PKG" ]; then
aptitude install $MISSING_LANG_PKG -y
apt-get -y install $MISSING_LANG_PKG
fi
EXTRA_LANG_PKG="$(dpkg-query --show | cut -f1 | grep -E '^(language-pack|language-support|firefox-locale|thunderbird-locale|libreoffice-help|libreoffice-l10n)' | grep -Ev "[-](de|en)\>")" # remove extra language packages
if [ -n "$EXTRA_LANG_PKG" ]; then
aptitude purge $EXTRA_LANG_PKG -y
apt-get -y purge $EXTRA_LANG_PKG
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment