From: Felix Fietkau Date: Sun, 11 Jun 2006 00:25:58 +0000 (+0000) Subject: fix dependency handling bug X-Git-Tag: reboot~30718^2~600 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=faf7e1a5dda7fc6061d46187a7ae1c8907b91346;p=oweals%2Fopenwrt.git fix dependency handling bug SVN-Revision: 3929 --- diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index d75f06d6f6..0983186f86 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; }