def should_run(cls, environment, data): """Should the spoke run?""" if not is_module_available(LOCALIZATION): return False if not NormalSpoke.should_run(environment, data): return False # Don't show the language support spoke on live media. return context.payload_type not in PAYLOAD_LIVE_TYPES
def should_run(cls, environment, data): """Don't run the storage spoke on dir installations.""" if not NormalSpoke.should_run(environment, data): return False return not conf.target.is_directory
def should_run(cls, environment, data): """Don't run for any non-package payload.""" if not NormalSpoke.should_run(environment, data): return False return context.payload_type == PAYLOAD_TYPE_DNF
def should_run(cls, environment, data): """Should the spoke run?""" if not is_module_available(LOCALIZATION): return False return NormalSpoke.should_run(environment, data)
def should_run(cls, environment, data): """Don't show the language support spoke on live media.""" if not NormalSpoke.should_run(environment, data): return False return context.payload.type not in PAYLOAD_LIVE_TYPES