Benjamin Schubert pushed to branch bschubert/rework-sort at BuildStream / buildstream
Commits:
-
2c41c006
by Benjamin Schubert at 2019-02-04T16:57:47Z
1 changed file:
Changes:
... | ... | @@ -426,15 +426,19 @@ class Loader(): |
426 | 426 |
elements_to_load = deque(elements)
|
427 | 427 |
|
428 | 428 |
while elements_to_load:
|
429 |
+ print([e.name for e in elements_to_load])
|
|
430 |
+ |
|
429 | 431 |
element = elements_to_load.pop()
|
430 | 432 |
|
431 | 433 |
if element.visited:
|
434 |
+ print("SKIP", element.name)
|
|
432 | 435 |
continue
|
433 | 436 |
|
434 | 437 |
if any(filter(not_visited, element.reverse_dependencies)):
|
435 | 438 |
# We will want to treat this item as soon as possible.
|
436 | 439 |
# Mark it as already seen
|
437 | 440 |
element.tried_visit = True
|
441 |
+ print("Missing rdep for", element.name, ":", [e.name for e in filter(not_visited, element.reverse_dependencies)])
|
|
438 | 442 |
continue
|
439 | 443 |
|
440 | 444 |
element.visited = True
|