aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/feeds
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-04-13 22:36:51 +0000
committerNicolas Thill <nico@openwrt.org>2008-04-13 22:36:51 +0000
commit6e64b74230c2fd4fb944de084b712f351e14830f (patch)
tree8951a811b0079a99c455bcda1a566e5856bee74f /scripts/feeds
parente3ec9ee18c7fcf3e3a800b7d3a2c95466af74123 (diff)
downloadupstream-6e64b74230c2fd4fb944de084b712f351e14830f.tar.gz
upstream-6e64b74230c2fd4fb944de084b712f351e14830f.tar.bz2
upstream-6e64b74230c2fd4fb944de084b712f351e14830f.zip
install dependencies after installing package to avoid deep recursion and mass memory consuption
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10823 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 2b50d5c1a5..78e65ad1d5 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;
}