From 259fecf6cf41f42b6826ee4ad19d98384c296c41 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 19 Jan 2019 21:22:09 +0000 Subject: [PATCH] solver: Rename a variable to avoid confusion Signed-off-by: Niels Thykier --- britney2/installability/solver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/britney2/installability/solver.py b/britney2/installability/solver.py index 1f04992..4dbbe74 100644 --- a/britney2/installability/solver.py +++ b/britney2/installability/solver.py @@ -337,11 +337,11 @@ class InstallabilitySolver(object): # Now that we got the SSCs (in comps), we select on item from # each SSC to represent the group and become an ID for that # SSC. - # * scc_items[ssc_id] => All the items in that SSC + # * scc_keys[ssc_id] => All the item-keys in that SSC # # We also "repair" the ordering, so we know in which order the # hints should be emitted. - scc_items = self._merge_items_into_components(comps, order) + scc_keys = self._merge_items_into_components(comps, order) if debug_solver: # pragma: no cover self.logger.debug("-- PARTIAL ORDER --") @@ -368,9 +368,9 @@ class InstallabilitySolver(object): if order[cur].after <= emitted and cur not in emitted: # This item is ready to be emitted right now if debug_solver: # pragma: no cover - self.logger.debug("%s -- %s", cur, sorted(scc_items[cur])) + self.logger.debug("%s -- %s", cur, sorted(scc_keys[cur])) emitted.add(cur) - result.append([key2item[x] for x in scc_items[cur]]) + result.append([key2item[x] for x in scc_keys[cur]]) if order[cur].before: # There are components that come after this one. # Add it to queue: