From faf7e1a5dda7fc6061d46187a7ae1c8907b91346 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 11 Jun 2006 00:25:58 +0000 Subject: [PATCH] fix dependency handling bug SVN-Revision: 3929 --- openwrt/scripts/gen_deps.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index d75f06d6f6f..0983186f861 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; } -- 2.30.2