X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/e7b225df0bcc2e0d7c31975a92e2db1b66b6f2aa..c69fa28f0f3a6704f63e8b5316e5a292223f27d9:/scripts/feeds?ds=sidebyside diff --git a/scripts/feeds b/scripts/feeds index 2b50d5c1a..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}}, @{$pkg->{builddepends}}) { - 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; }