'Compare the last saved metadata for each readme file in the repository with the new metadata
in self.metadata_dict to determine if a new repository_metadata table record is required or
if the last saved metadata record can be updated for readme files instead.'

def new_readme_files_metadata_required(self, repository_metadata):

    if ('readme_files' in self.metadata_dict):
        current_readme_files = self.metadata_dict['readme_files']
        if repository_metadata:
            metadata = repository_metadata.metadata
            if metadata:
                if ('readme_files' in metadata):
                    ancestor_readme_files = metadata['readme_files']
                    readme_file_comparison = self.compare_readme_files(ancestor_readme_files, current_readme_files)
                    if (readme_file_comparison == self.NOT_EQUAL_AND_NOT_SUBSET):
                        return True
                    else:
                        return False
                else:
                    return False
            else:
                return False
        else:
            return True
    return False
