removepkg_move_dbentry package...
removepkg_move_dbentry_status
removepkg_unmove_dbentry
Moves database entry and doisnt.sh if one exists of given package names from $ADM_DIR/packages and $ADM_DIR/scripts to $ADM_DIR/removed_packages and $ADM_DIR/removed_scripts respectively.
In case PARANOID is nonzero, the status is set to 0(initially the status is 1) after successful creation of a temporary file.If temporary file creation fails it returns ERR_CREAT_TMP.Files successfuly moved are stored in the temporary file list.In case an error occurs while moving, it immediately returns ERR_MOVE_DB. If the moving of all database entry succeeds, status is reset to 1.
In case PARANOID is 0, no temporary file is created and no list is stored.The status remains 1 and is not changed.In case error occurs while moving it returns ERR_MOVE_DB.
Returns the status of a call to removepkg_move_dbentry.If the status is 0, removepkg_move_dbentry was called and PARANOID was non zero and there was an error while moving files or there was an interruption via a signal.As such, if status is 0, we should call removepkg_unmove_dbentry and removepkg_bkup_restore from cleanup function.
Moves back all the moved database entry and doinst.sh by removepkg_move_dbentry back to their place.