def collect_requirements(self): """Return installation requirements. :return: a list of requirements """ if not self.installation_enabled: log.debug( "OSCAP Addon: The installation is disabled. Skip the requirements." ) return [] requirements = [ Requirement.for_package(package_name="openscap", reason="Required by oscap add-on."), Requirement.for_package(package_name="openscap-scanner", reason="Required by oscap add-on.") ] if self.policy_data.content_type == "scap-security-guide": requirements.append( Requirement.for_package(package_name="scap-security-guide", reason="Required by oscap add-on.")) return requirements