def _source_needs_network(self, sources): """Return True if the source requires network. :param sources: Source paths for testing :type sources: list :returns: True if any source requires network """ for s in sources: if has_network_protocol(s): log.debug("Source %s needs network for installation", s) return True log.debug("Source doesn't require network for installation") return False
def network_required(self): """Does the source require a network? :return: True or False """ return has_network_protocol(self.configuration.url)