aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-11 00:25:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-11 00:25:58 +0000
commit6a048fa9e8bd6a51cf3ed26028d158c4583a870c (patch)
treed13ac63970773f61999766c0fd64976d4d2d4cec
parentdf761fe7356358bc498918b7afa668ae9dab5423 (diff)
downloadupstream-6a048fa9e8bd6a51cf3ed26028d158c4583a870c.tar.gz
upstream-6a048fa9e8bd6a51cf3ed26028d158c4583a870c.tar.bz2
upstream-6a048fa9e8bd6a51cf3ed26028d158c4583a870c.zip
fix dependency handling bug
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3929 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xscripts/gen_deps.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl
index d75f06d6f6..0983186f86 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;
}