Skip to content

Commit 514571a

Browse files
committed
Fixed graph conflicts logic
1 parent 31e62fc commit 514571a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonforandroid/graph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ def _add(self, graph, dependent, dependency):
6060

6161
def conflicts(self, conflict):
6262
graphs = self.graphs
63+
initial_num = len(graphs)
6364
for i in range(len(graphs)):
64-
graph = graphs[len(graphs) - 1 - i]
65+
graph = graphs[initial_num - 1 - i]
6566
if conflict in graph:
66-
graphs.pop(len(graphs) - 1 - i)
67+
graphs.pop(initial_num - 1 - i)
6768
return len(graphs) == 0
6869

6970
def remove_remaining_conflicts(self, ctx):

0 commit comments

Comments
 (0)