def init(self): group_nodes = {} group_components = {} repodb = pisi.db.repodb.RepoDB() for repo in repodb.list_repos(): doc = repodb.get_repo_doc(repo) group_nodes[repo] = self.__generate_groups(doc) group_components[repo] = self.__generate_components(doc) self.gdb = pisi.db.itembyrepo.ItemByRepo(group_nodes) self.gcdb = pisi.db.itembyrepo.ItemByRepo(group_components)
def init(self): component_nodes = {} component_packages = {} component_sources = {} repodb = pisi.db.repodb.RepoDB() for repo in repodb.list_repos(): doc = repodb.get_repo_doc(repo) component_nodes[repo] = self.__generate_components(doc) component_packages[repo] = self.__generate_packages(doc) component_sources[repo] = self.__generate_sources(doc) self.cdb = pisi.db.itembyrepo.ItemByRepo(component_nodes) self.cpdb = pisi.db.itembyrepo.ItemByRepo(component_packages) self.csdb = pisi.db.itembyrepo.ItemByRepo(component_sources)