scripts/metadata.pl: fix ignoring missing host dependencies
authorFelix Fietkau <nbd@openwrt.org>
Thu, 13 Mar 2014 14:14:06 +0000 (14:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 13 Mar 2014 14:14:06 +0000 (14:14 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39917

scripts/metadata.pl

index 8fe1b90..f075525 100755 (executable)
@@ -774,9 +774,10 @@ sub gen_package_mk() {
                                } elsif (defined($srcpackage{$dep})) {
                                        $idx = $subdir{$dep}.$dep;
                                }
-                               $idx .= $suffix;
                                undef $idx if $idx eq 'base-files';
                                if ($idx) {
+                                       $idx .= $suffix;
+
                                        my $depline;
                                        next if $pkg->{src} eq $pkg_dep->{src}.$suffix;
                                        next if $dep{$condition.":".$pkg->{src}."->".$idx};