install_pkg.sh: translated frppm french to english
This commit is contained in:
@@ -13,21 +13,21 @@
|
||||
# * PKGSEL: List of package to install
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_install_pkg="0.1.3"
|
||||
export VER_install_pkg="0.1.4"
|
||||
export DEP_install_pkg="upgrade_dist"
|
||||
|
||||
install_pkg()
|
||||
{
|
||||
# Remove unnecessary packages
|
||||
if [[ -n $PKGS_RMLIST ]]; then
|
||||
prnt I "Suppression de paquets supperflus..."
|
||||
prnt I "Removing some undesired packages..."
|
||||
pkgrm $PKGS_RMLIST
|
||||
fi
|
||||
|
||||
# Blacklist some anoying packages (and remove them if needed)
|
||||
if [[ -n PKGS_BLACKLIST ]]; then
|
||||
for pkg in $PKGS_BLACKLIST; do
|
||||
prnt I "Mise du paquet $pkg en liste noire..."
|
||||
prnt I "Placing $pkg into the blacklist..."
|
||||
local dest=/etc/apt/preferences.d/blacklist_$pkg
|
||||
installfile pkgman/blacklist.conf $dest &&
|
||||
sed -i -e "s/@pkg@/pkg/" $dest
|
||||
@@ -40,31 +40,31 @@ install_pkg()
|
||||
|
||||
# Install all the configured packages
|
||||
if [[ -n $PKGSEL ]]; then
|
||||
prnt I "Installation de la sélection de paquets..."
|
||||
prnt I "Installing the package selection..."
|
||||
pkginst $PKGSEL
|
||||
fi
|
||||
|
||||
# Cleaning
|
||||
prnt I "Suppression des paquets résiduels le cas échéant..."
|
||||
prnt I "Removing not needed anymore package..."
|
||||
pkgautorm
|
||||
}
|
||||
|
||||
precheck_install_pkg()
|
||||
{
|
||||
if [[ -z PKGS_RMLIST ]]; then
|
||||
prnt I "Aucun paquet à désinstaller"
|
||||
prnt I "No package to remove."
|
||||
else
|
||||
prnt I "$(echo $PKGS_RMLIST | wc -w) paquets à supprimer."
|
||||
prnt I "$(echo $PKGS_RMLIST | wc -w) package to remove."
|
||||
fi
|
||||
|
||||
if [[ -z PKGS_BLACKLIST ]]; then
|
||||
prnt W "Les paquets $pkg seront placés en liste noire !"
|
||||
prnt W "The packages $pkg will be placed into the blacklist !"
|
||||
fi
|
||||
|
||||
if [[ -z $PKGSEL ]]; then
|
||||
prnt W "Pas de paquet additionel à installer !"
|
||||
prnt W "No additionnal package to install !"
|
||||
else
|
||||
prnt I "$(echo $PKGSEL | wc -w) paquets additionels seront installés."
|
||||
prnt I "$(echo $PKGSEL | wc -w) additionnal package have to be installed."
|
||||
fi
|
||||
file_exists pkgman/blacklist.conf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user