aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/feeds
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-04 22:03:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-04 22:03:28 +0000
commit439d252093c7b65803284326e67638797c7edf72 (patch)
treeae5de275b8ac65e07465b763754552a84a275f8f /scripts/feeds
parent8e8b9359638866b6a0150fdf7666301e9ccfba5e (diff)
downloadmaster-187ad058-439d252093c7b65803284326e67638797c7edf72.tar.gz
master-187ad058-439d252093c7b65803284326e67638797c7edf72.tar.bz2
master-187ad058-439d252093c7b65803284326e67638797c7edf72.zip
fix scripts/feeds dependency lookup: process deps for all virtual packages of a src package that belongs to the package that the user wants to install
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12101 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 78e65ad1d5..f1baad5766 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -280,10 +280,12 @@ sub install_package {
};
# install all dependencies
- foreach my $dep (@{$pkg->{depends}}, @{$pkg->{builddepends}}) {
- next if $dep =~ /@/;
- $dep =~ s/^\+//;
- install_package($feed, $dep) == 0 or $ret = 1;
+ foreach my $vpkg (@{$srcpackage{$src}}) {
+ foreach my $dep (@{$vpkg->{depends}}, @{$vpkg->{builddepends}}) {
+ next if $dep =~ /@/;
+ $dep =~ s/^\+//;
+ install_package($feed, $dep) == 0 or $ret = 1;
+ }
}
return $ret;