@classmethod<EOL><INDENT>def get_repos_by_backend_section(cls, backend_section, raw=True):<DEDENT>
repos = []<EOL>projects = TaskProjects.get_projects()<EOL>for pro in projects:<EOL><INDENT>if backend_section in projects[pro]:<EOL><INDENT>if cls.GLOBAL_PROJECT not in projects:<EOL><INDENT>repos += projects[pro][backend_section]<EOL><DEDENT>else:<EOL><INDENT>if raw:<EOL><INDENT>if pro != cls.GLOBAL_PROJECT:<EOL><INDENT>if backend_section not in projects[cls.GLOBAL_PROJECT]:<EOL><INDENT>repos += projects[pro][backend_section]<EOL><DEDENT>elif backend_section in projects[pro] and backend_section in projects[cls.GLOBAL_PROJECT]:<EOL><INDENT>repos += projects[cls.GLOBAL_PROJECT][backend_section]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>not_in_unknown = [projects[pro] for pro in projects if pro != cls.GLOBAL_PROJECT][<NUM_LIT:0>]<EOL>if backend_section not in not_in_unknown:<EOL><INDENT>repos += projects[cls.GLOBAL_PROJECT][backend_section]<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>if pro != cls.GLOBAL_PROJECT:<EOL><INDENT>if backend_section not in projects[cls.GLOBAL_PROJECT]:<EOL><INDENT>repos += projects[pro][backend_section]<EOL><DEDENT>elif backend_section in projects[pro] and backend_section in projects[cls.GLOBAL_PROJECT]:<EOL><INDENT>repos += projects[pro][backend_section]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>not_in_unknown_prj = [projects[prj] for prj in projects if prj != cls.GLOBAL_PROJECT]<EOL>not_in_unknown_sections = list(set([section for prj in not_in_unknown_prj<EOL>for section in list(prj.keys())]))<EOL>if backend_section not in not_in_unknown_sections:<EOL><INDENT>repos += projects[pro][backend_section]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>logger.debug("<STR_LIT>", backend_section, repos, raw)<EOL>repos = list(set(repos))<EOL>return repos<EOL>
return list with the repositories for a backend_section