mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
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:
parent
a0dcf59277
commit
ad0e03f14c
1 changed files with 8 additions and 8 deletions
|
|
@ -53,14 +53,14 @@ class BaseCmdPkgRelations(Cmd):
|
||||||
version_pattern = re.compile("[0-9-.]*")
|
version_pattern = re.compile("[0-9-.]*")
|
||||||
ret: list[str] = []
|
ret: list[str] = []
|
||||||
for flavour in flavours: # build / release / run / devel
|
for flavour in flavours: # build / release / run / devel
|
||||||
for subsec in subsections:
|
cur_pkgs = seed_pkgs.copy()
|
||||||
section = 'pkg.' + rel_type + '.' + subsec
|
visited = set()
|
||||||
visited = set()
|
while len(cur_pkgs):
|
||||||
cur_pkgs = seed_pkgs.copy()
|
cur_pkg = cur_pkgs.pop(0)
|
||||||
while len(cur_pkgs):
|
if cur_pkg in visited or cur_pkg in ignore:
|
||||||
cur_pkg = cur_pkgs.pop(0)
|
continue
|
||||||
if cur_pkg in visited or cur_pkg in ignore:
|
for subsec in subsections:
|
||||||
continue
|
section = 'pkg.' + rel_type + '.' + subsec
|
||||||
visited.add(cur_pkg)
|
visited.add(cur_pkg)
|
||||||
value = self.app.get_value(cur_pkg, section, flavour)
|
value = self.app.get_value(cur_pkg, section, flavour)
|
||||||
if not value:
|
if not value:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue