scripts/package-metadata.pl: fix handling transitive conditional dependencies
authorFelix Fietkau <nbd@nbd.name>
Fri, 1 Sep 2023 10:14:26 +0000 (12:14 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 1 Sep 2023 10:18:13 +0000 (12:18 +0200)
commit6c3eff9dd8bb8d0f268e8a0dbedbc6a33bdac796
tree1996c94e90eb9dd03a04a12c0cdeffdc1f7f56c7
parent821cf6dd385ee784f06ec33202ca4df7f475b13a
scripts/package-metadata.pl: fix handling transitive conditional dependencies

When a package foo depends on PACKAGE_foo:bar (in order to make build
dependencies conditional), tracking transitive dependencies can fail because
the internal seen flag is checked/set before eliminating the fake conditional
dependency. This can show up as a depends on not properly turned into a
select further down in the dependency chain

Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/package-metadata.pl