aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/feeds
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds20
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 0228c7ac07..0a7e9317f8 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -525,15 +525,17 @@ sub install_package {
};
# install all dependencies referenced from the source package
- foreach my $vpkg (@{$feed_src->{$src}{packages}}) {
- foreach my $dep (@{$vpkg->{depends}}, @{$vpkg->{builddepends}}, @{$vpkg->{"builddepends/host"}}) {
- next if $dep =~ /@/;
- $dep =~ s/^\+//;
- $dep =~ s/^.+://;
- $dep =~ s/\/.+$//;
- next unless $dep;
- install_package($feed, $dep, 0) == 0 or $ret = 1;
- }
+ foreach my $dep (
+ @{$feed_src->{$src}{builddepends}},
+ @{$feed_src->{$src}{"builddepends/host"}},
+ map { @{$_->{depends}} } @{$feed_src->{$src}{packages}}
+ ) {
+ next if $dep =~ /@/;
+ $dep =~ s/^\+//;
+ $dep =~ s/^.+://;
+ $dep =~ s/\/.+$//;
+ next unless $dep;
+ install_package($feed, $dep, 0) == 0 or $ret = 1;
}
return $ret;