summaryrefslogtreecommitdiffstats
path: root/scripts/feeds
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-10-18 19:36:44 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-10-18 19:36:44 +0000
commit5a00c988a2992936335cd561f1ede63a89bb7a1b (patch)
treea382afa4e3c11ccb3922695f1591b1e440b729ce /scripts/feeds
parentfb4892d8a4b3e62423751f3006bca252292572b7 (diff)
add support for conditional depends to the feeds script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13004 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/feeds b/scripts/feeds
index 8ec0799f7..76d83af9a 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -290,8 +290,9 @@ sub install_package {
foreach my $vpkg (@{$srcpackage{$src}}, $pkg) {
foreach my $dep (@{$vpkg->{depends}}, @{$vpkg->{builddepends}}) {
next if $dep =~ /@/;
- next if $dep =~ /:/;
$dep =~ s/^\+//;
+ $dep =~ s/^.+://;
+ next unless $dep;
install_package($feed, $dep) == 0 or $ret = 1;
}
}