diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-06-11 00:25:58 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-11 00:25:58 +0000 |
| commit | faf7e1a5dda7fc6061d46187a7ae1c8907b91346 (patch) | |
| tree | afc4b5212bcf107a39862910244932623cc71956 /openwrt/scripts | |
| parent | 7cd883e6713f8a2dd970f75a5d0fd4c8b2190872 (diff) | |
| download | mtk-20170518-faf7e1a5dda7fc6061d46187a7ae1c8907b91346.zip mtk-20170518-faf7e1a5dda7fc6061d46187a7ae1c8907b91346.tar.gz mtk-20170518-faf7e1a5dda7fc6061d46187a7ae1c8907b91346.tar.bz2 | |
fix dependency handling bug
SVN-Revision: 3929
Diffstat (limited to 'openwrt/scripts')
| -rwxr-xr-x | openwrt/scripts/gen_deps.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index d75f06d..0983186 100755 --- a/openwrt/scripts/gen_deps.pl +++ b/openwrt/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; } |
