scripts/package-metadata.pl: strip already selected conditions from dependencies
authorFelix Fietkau <nbd@nbd.name>
Fri, 1 Sep 2023 17:26:29 +0000 (19:26 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 1 Sep 2023 17:30:32 +0000 (19:30 +0200)
commitae88f00357c8d9b616bc034b1f266340f6bef3e3
tree41ee2824db93fb7514e005c85f4bfabaf9add3b7
parent6252c18d1cae2a0f94e6a4bd706b98b210cf8063
scripts/package-metadata.pl: strip already selected conditions from dependencies

When a dependency is pulled in via conditional depends, and the condition
is already selected earlier in the chain, drop the condition.
This avoids some corner cases that trigger recursive dependencies.

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