X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e240cc0ea62aa7404ccf6187cc95cf6370212bef..cee33e241a7974dc808b91a325d6777fc18280c0:/scripts/gen_deps.pl?ds=inline diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl index d75f06d6f..0983186f8 100755 --- a/scripts/gen_deps.pl +++ b/scripts/gen_deps.pl @@ -38,8 +38,8 @@ foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { my $depline = ""; foreach my $dep (@{$pkg{$name}->{depends}}) { my $idx; - if (defined $pkg{$dep}->{src} && $pkg{$name}->{src} ne $pkg{$dep}->{src}) { - $idx = $pkg{$dep}->{src}; + if (defined $pkg{$dep}->{src}) { + ($pkg{$name}->{src} ne $pkg{$dep}->{src}) and $idx = $pkg{$dep}->{src}; } elsif (defined $pkg{$dep}) { $idx = $dep; }