removepkg_remove_files
removepkg_bkup_and_remove_files
removepkg_remove_files_status
removepkg_bkup_and_remove_files_state
removepkg_remove_cats
removepg_remove_dirs
removepkg_remove_dirs_print_skipped
removepkg_move_dbentry
removepkg_move_dbentry_status
removepkg_unmove_dbentry
removepkg_restore
All the functions read from stdin and do not use any arguments.
reads a newline delimited list of backslash quoted files, filters directories and files under install/ and then converts them to non escaped null delimited file list and removes them one by one and echoes them if VERBOSE is non-zero.If PARANOID is non zero it just calls removepkg_bkup_and_remove_files.If a file cannot be removed it returns ERR_REMOVE_FILES
It takes the same input and does the same as removepkg_remove_files but instead of removing them one by one, it creates a backup tar using bkup_rm while removing the files at the same time.If creation of temporary backup tar fails it returns ERR_CREAT_TMP and if removing or backing up fails it returns ERR_REMOVE_FILES.
returns the state set by removepkg_bkup_and_remove_files.The state is always 1. If the removepkg_bkup_and_remove_files is called state is set to zero if temporary ball creation succeeds .It is set back to 1 in the end only after successful call to bkup_rm.In case of an interruption due to a signal or error while backing up/removing files causing removepkg_bkup_and_remove_files to return immediately, the state remains zero which can be used to determine if we need to call removepkg_restore.
filters directories from list read from stdin and tries to remove them if they are empty.Directories which cannot be removed are stored in a temporary file. The contents of this file are displayed in escaped version by removepkg_remove dirs_print_skipped which also removes the temporary file subsequently.
read from stdin a newline delimited list like others but removes cat files created by man(1) if found.
restores from the temporary tar created by removepkg_bkup_and_remove_files and subsequently remove the backup tar file.