(self)
Clear out blaclisted repositories.
Clear out blaclisted repositories.
Clear out blaclisted repositories .
def clear_out_blacklisted_repositories(self):
        """Clear out blaclisted repositories."""
        need_to_save = False
        for repository in self.common.blacklist:
            if self.is_known(repository):
                repository = self.get_by_name(repository)
                if repository.status.installed:
                    self.logger.error(
                        f"You have {repository.information.full_name} installed with HACS, this repositroy have not been blacklisted, please consider removing it."
                    )
                else:
                    need_to_save = True
                    repository.remove()

        if need_to_save:
            self.data.write()
def clear_out_blacklisted_repositories ( self ) : need_to_save = False for repository in self . common . blacklist : if self . is_known ( repository ) : repository = self . get_by_name ( repository ) if repository . status . installed : self . logger . error ( f"You have {repository.information.full_name} installed with HACS, this repositroy have not been blacklisted, please consider removing it." ) else : need_to_save = True repository . remove ( ) if need_to_save : self . data . write ( )