+ my $condition;
+
+ if ($depend =~ /^(.+):(.+)$/) {
+ if ($1 ne "PACKAGE_$pkgname") {
+ if ($parent_condition) {
+ $condition = "$parent_condition && $1";
+ } else {
+ $condition = $1;
+ }
+ }
+ $depend = $2;
+ }
+ next if $seen->{$depend};
+ next if $package{$depend} and $package{$depend}->{buildonly};
+ $seen->{$depend} = 1;