From e01192451189a33a5b9dc501fd3cbb1c596e30a2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 18 Oct 2008 19:36:44 +0000 Subject: add support for conditional depends to the feeds script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13004 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/feeds | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/feeds') diff --git a/scripts/feeds b/scripts/feeds index 8ec0799f70..76d83af9a3 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; } } -- cgit v1.2.3