cmds.projects.BaseCmdPkgRelations: Fix cross-sec deps

If a package P is added, only those of its dependendencies are added
along which are in the same os-cascade section as P. That's wrong,
fix it.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-06 15:35:18 +02:00
commit ad0e03f14c

View file

@ -53,14 +53,14 @@ class BaseCmdPkgRelations(Cmd):
version_pattern = re.compile("[0-9-.]*")
ret: list[str] = []
for flavour in flavours: # build / release / run / devel
for subsec in subsections:
section = 'pkg.' + rel_type + '.' + subsec
visited = set()
cur_pkgs = seed_pkgs.copy()
visited = set()
while len(cur_pkgs):
cur_pkg = cur_pkgs.pop(0)
if cur_pkg in visited or cur_pkg in ignore:
continue
for subsec in subsections:
section = 'pkg.' + rel_type + '.' + subsec
visited.add(cur_pkg)
value = self.app.get_value(cur_pkg, section, flavour)
if not value: