improved pkg_inst module (remove + blacklist), some small typoes
This commit is contained in:
@@ -1,20 +1,40 @@
|
||||
# Installation des paquets
|
||||
|
||||
export VER_install_pkg="0.0.2"
|
||||
export VER_install_pkg="0.1.0"
|
||||
|
||||
install_pkg()
|
||||
{
|
||||
[[ $PKGSEL ]] &&
|
||||
[[ -n $PKGS_RMLIST ]] &&
|
||||
prnt I "Suppression de paquets supperflus..." &&
|
||||
pkgrem $PKGS_RMLIST
|
||||
|
||||
if [[ -n PKGS_BLACKLIST ]]; then
|
||||
for pkg in $PKGS_BLACKLIST; do
|
||||
prnt I "Mise du paquet $pkg en liste noire..."
|
||||
local dest=/usr/apt/apt.conf.d/blacklist_$pkg.conf
|
||||
installfile blacklist.conf $dest &&
|
||||
sed -i -e "s/@pkg@/pkg/" $dest
|
||||
done
|
||||
fi
|
||||
|
||||
[[ -n $PKGSEL ]] &&
|
||||
prnt I "Installation de la sélection de paquets..." &&
|
||||
pkginst $PKGSEL
|
||||
}
|
||||
|
||||
precheck_install_pkg()
|
||||
{
|
||||
if [[ -z PKGS_RMLIST ]]; then
|
||||
prnt I "Aucun paquet à désinstaller"
|
||||
else
|
||||
prnt I "$(echo $PKGS_RMLIST | wc -w) paquets à supprimer."
|
||||
fi
|
||||
[[ -z PKGS_BLACKLIST ]] &&
|
||||
prnt W "Les paquets $pkg seront placés en liste noire !"
|
||||
if [[ -z $PKGSEL ]]; then
|
||||
prnt W "Pas de paquet additionel à installer !"
|
||||
else
|
||||
prnt I "$(echo $PKGSEL | wc -w) paquets additionels seront installés"
|
||||
prnt I "$(echo $PKGSEL | wc -w) paquets additionels seront installés."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user