Don't crash on packages without merges ever (very few packages)

This commit is contained in:
Stephan Kulow
2022-11-01 19:30:41 +01:00
parent ab8120ca53
commit c94d13d74e
4 changed files with 8139 additions and 0 deletions

View File

@@ -175,6 +175,10 @@ class TreeBuilder:
merge_before_last = last_merge
last_merge = factory_node
factory_node = factory_node.parent
# a package without requests
if not last_merge:
return
if merge_before_last:
# we need to find the last merged_into that didn't end nowhere
# and cut the rope there