Script Index


/var/lib/sorcery/modules/libdispel

Functions for dispelling spells.

Synopsis

Functions for dispelling a spell


function reap_regular_files()

Parameters:

Stdin

list of files

Description

Given a list of files from standard input, deletes each file. Performs a "rm -f" on each file given in standard input, so be careful using this function!


function reap_config_files()

Parameters:

Stdin

list of files

Description

Reads a list of files from standard input. If the file has been modified (md5sum doesn't match the stored md5sum), then function C is called. Otherwise, the file is deleted.


function reap_modified_file()

Parameters:

Description

If C is off, will move the file to filename.YYYYMMDD. If C is on, the file will not be moved.


function reap_spell_config_stage()

Parameters:

Description

Removes spell config stages if there are any


function reap_depends()

Parameters:

Description

Removes depends entries for what the spell depends on


function reaper()

Parameters:

Description

First argument is a file containing a list of files to reap. Second argument is a file containing md5 sums of those files, used to detect if a config file has been modified. Config files are any files in /etc or any of its sub-directories.


function reap_state_files()

Parameters:

Description

First argument is a file containing install log, removes state files


function dispel_not_possible()

Parameters:

Returns:

Description

Checks that a spell is indeed installed.


function dispel_sustained()

Parameters:

Description

Does the sustained checks for spells


function load_spell()

Parameters:

Globals

SPELL

Description

Find out where a spell is located


function pre_remove()

Parameters:

Description

Run the PRE_REMOVE script if it exists


function post_remove()

Parameters:

Description

Run the POST_REMOVE script if it exists.


function dispel_spell()

Parameters:

Description

Dispel a spell


function dispel_depends_value_to_items()

Parameters:

Description

Set one of always, ask_yes, ask_no, and ignore to on based on the value of default, leave the remaining as off.


function dispel_depends_menu_template()

Parameters:

Description

Present a radiolist menu with the quad-options for one of various dependency following options.


function dispel_depends_defaults_menu()

Parameters:

Description

Present menus for each of the four dependency following options.