scripts/metadata.pl: avoid adding depends and select for the same symbol
authorFelix Fietkau <nbd@openwrt.org>
Thu, 12 Jun 2014 14:35:09 +0000 (14:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 12 Jun 2014 14:35:09 +0000 (14:35 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41160

scripts/metadata.pl

index eed1998d274bba8a01b2e876a41b12ad5cfc80df..e408beb507a695607a100586a2763530d7888853 100755 (executable)
@@ -504,7 +504,7 @@ sub mconf_depends {
                                        next if $depend eq $condition;
                                        $depend = "$depend if $condition";
                                } else {
-                                       $depend = "!($condition) || $depend";
+                                       $depend = "!($condition) || $depend" unless $dep->{$condition} eq 'select';
                                }
                        }
                }