Replace internal variable name.

This commit is contained in:
Alberto Planas 2013-08-27 16:09:17 +02:00
parent 349797217f
commit 77f297b6ea

View File

@ -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: