summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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;
}