fixed the way to obtain package lists, mutualised debian familly conf, added separator
This commit is contained in:
@@ -99,9 +99,7 @@ export -f pkgautorm
|
||||
# Execute preinstallation code
|
||||
exec_preinst()
|
||||
{
|
||||
local cmd=$(echo $GET_INSTALLLIST | sed "s/@pkg@/$@/")
|
||||
local pkglist=$($cmd)
|
||||
unset $cmd
|
||||
local pkglist=$(get_install_list $@)
|
||||
for pkg in $pkglist; do
|
||||
if [[ $(function_exists preinst_$pkg) ]]; then
|
||||
prnt I "Running $pkg preinstallation script..."
|
||||
@@ -136,8 +134,7 @@ export -f exec_postinst
|
||||
# Execute preremove code
|
||||
exec_prerm()
|
||||
{
|
||||
local cmd=$(echo $GET_REMOVELIST | sed "s/@pkg@/$@/")
|
||||
local pkglist=$($cmd)
|
||||
local pkglist=$(get_remove_list $@)
|
||||
unset $cmd
|
||||
for pkg in $pkglist; do
|
||||
if [[ $(function_exists prerm_$pkg) ]]; then
|
||||
@@ -173,7 +170,7 @@ export -f exec_postrm
|
||||
# Execute preupgrade code
|
||||
exec_preupgd()
|
||||
{
|
||||
local pkglist=$($GET_UPGRADELIST)
|
||||
local pkglist=$(get_upgrade_list)
|
||||
for pkg in $pkglist; do
|
||||
if [[ $(function_exists preupgd_$pkg) ]]; then
|
||||
prnt I "Running $pkg preupgrade script..."
|
||||
@@ -208,7 +205,7 @@ export -f exec_postupgd
|
||||
# Execute prerm code in autoremove context
|
||||
exec_preautorm()
|
||||
{
|
||||
local pkglist=$($GET_AUTOREMLIST)
|
||||
local pkglist=$(get_autorem_list)
|
||||
for pkg in $pkglist; do
|
||||
if [[ $(function_exists prerm_$pkg) ]]; then
|
||||
prnt I "Running $pkg preremove script..."
|
||||
|
||||
Reference in New Issue
Block a user