X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/074c4146b6cdac24db56c52b314753f9f7e52217..e54d9e35f2bf169ef906a0e84e3b52139e8d5a7f:/scripts/feeds diff --git a/scripts/feeds b/scripts/feeds index afb8fff29..78e65ad1d 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -264,13 +264,6 @@ sub install_package { # newly installed packages set the source package $installed{$src} and return 0; - # install all dependencies - foreach my $dep (@{$pkg->{depends}}) { - next if $dep =~ /@/; - $dep =~ s/^\+//; - install_package($feed, $dep) == 0 or $ret = 1; - } - # check previously installed packages $installed{$name} and return 0; $installed{$src} = 1; @@ -286,6 +279,13 @@ sub install_package { return 1; }; + # install all dependencies + foreach my $dep (@{$pkg->{depends}}, @{$pkg->{builddepends}}) { + next if $dep =~ /@/; + $dep =~ s/^\+//; + install_package($feed, $dep) == 0 or $ret = 1; + } + return $ret; }