implemented patchfile and pre post action of package manager, renamed pkgrem -> pkgrm

This commit is contained in:
levasseur
2021-10-25 17:33:23 +02:00
parent c45078fbe7
commit 6fa6dcc24d
7 changed files with 208 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
# * PKGSEL: List of package to install
# ------------------------------------------------------------------------------
export VER_install_pkg="0.1.1"
export VER_install_pkg="0.1.2"
export DEP_install_pkg="upgrade_dist"
install_pkg()
@@ -21,7 +21,7 @@ install_pkg()
# Remove unnecessary packages
if [[ -n $PKGS_RMLIST ]]; then
prnt I "Suppression de paquets supperflus..."
pkgrem $PKGS_RMLIST
pkgrm $PKGS_RMLIST
fi
# Blacklist some anoying packages (and remove them if needed)
@@ -33,7 +33,7 @@ install_pkg()
sed -i -e "s/@pkg@/pkg/" $dest
# If blacklisted we suppose uninstall as well (if neeeded)
pkgrem $pkg
pkgrm $pkg
done
fi
@@ -45,7 +45,7 @@ install_pkg()
# Cleaning
prnt I "Suppression des paquets résiduels le cas échéant..."
pkgautorem
pkgautorm
}
precheck_install_pkg()

View File

@@ -13,7 +13,7 @@
# * PROXYAPTPORT: Working port for APT proxy
# ------------------------------------------------------------------------------
export VER_upgrade_dist="0.1.2"
export VER_upgrade_dist="0.1.3"
# As aptitude might fail if clock is too far from real time, we need to depend
# on ntp
@@ -53,7 +53,7 @@ upgrade_dist()
pkgupgd
prnt I "Suppression des paquets résiduels..."
pkgautorem
pkgautorm
}
precheck_upgrade_dist()