diff --git a/osc-check_repo.py b/osc-check_repo.py index c8732a77..311a8883 100644 --- a/osc-check_repo.py +++ b/osc-check_repo.py @@ -871,12 +871,12 @@ def _check_repo_group(self, id_, reqs, opts): # Update the currect graph and see if we have different cycles if p.spackage in current_graph: current_graph[p.spackage] = pkg - current_graph.remove_edges_from(set((pkg.pkg, subpkgs[p]) for p in pkg.deps if p in subpkgs)) + current_graph.remove_edges_from(set((pkg.pkg, subpkgs[p_]) for p_ in pkg.deps if p_ in subpkgs)) else: current_graph.add_node(pkg.pkg, pkg) - current_graph.add_edges_from((pkg.pkg, subpkgs[p]) for p in pkg.deps if p in subpkgs) + current_graph.add_edges_from((pkg.pkg, subpkgs[p_]) for p_ in pkg.deps if p_ in subpkgs) - subpkgs.update(dict((p, pkg.pkg) for p in pkg.deps)) + subpkgs.update(dict((p_, pkg.pkg) for p_ in pkg.deps)) for cycle in current_graph.cycles(): if cycle not in factory_cycles: