fix dependency handling bug

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3929 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2006-06-11 00:25:58 +00:00
parent df761fe735
commit 6a048fa9e8
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}