cmds.project.lib.pkg_relations(): Fix: Empty output

This reverts the changes commit 24928c6f did beyond mere type fixes to pkg_relations(). It looked better, but it had the output collapse to an empty list. Refactoring of that mega-function postponed.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-01 15:41:45 +02:00
commit d0cb9817a2
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -112,7 +112,7 @@ def pkg_relations(
raise Exception('Unknown version specifier in ' + spec)
if len(dep) != 3 or not expand_semver_revision_range:
expanded_deps = [dep]
continue
else:
assert version is not None
expanded_deps = []
semver = re.split(r'[.-]', version)