Functions for dispelling spells.
Original version Copyright 2001 by Kyle Sallee Additions/Corrections Copyright 2002-4 by the SourceMage Team
Functions for dispelling a spell
list of files
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!
list of files
Reads a list of files from standard input. If the file has been
modified (md5sum doesn't match the stored md5sum), then function
C
If C
Removes spell config stages if there are any
Removes depends entries for what the spell depends on
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.
First argument is a file containing install log, removes state files
Checks that a spell is indeed installed.
Does the sustained checks for spells
SPELL
Find out where a spell is located
Run the PRE_REMOVE script if it exists
Run the POST_REMOVE script if it exists.
Dispel a spell
Set one of always, ask_yes, ask_no, and ignore to on based on the value of default, leave the remaining as off.
Present a radiolist menu with the quad-options for one of various dependency following options.
Present menus for each of the four dependency following options.