summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-06-11 00:25:58 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-06-11 00:25:58 +0000
commit4c9d7a5f27c9b6cf0e7e3ccec87025b7131096ac (patch)
treed13ac63970773f61999766c0fd64976d4d2d4cec
parent4bbeddb8915568cad48fa6a975359ed2d0d56734 (diff)
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 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;
}