scripts/package-metadata.pl: fix overriding conditional dependencies with conditional...
authorFelix Fietkau <nbd@nbd.name>
Wed, 11 Jan 2017 17:22:56 +0000 (18:22 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 11 Jan 2017 17:24:39 +0000 (18:24 +0100)
commitcfd83555fc4f0bab18a26f6812da18e64df46ff3
tree64acc60d0995d82544b45b577d88744a5067842d
parent90f0ca0ddca0da290b5b12c4d6c86458438edaa2
scripts/package-metadata.pl: fix overriding conditional dependencies with conditional select

Conditional dependencies use the '(!cond) || dep' syntax, whereas
conditional select uses 'dep if cond'.
Add an extra check to suppress emitting a conditional if an equal
conditional select already exists.

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