From: Felix Fietkau Date: Sat, 18 Oct 2008 19:36:44 +0000 (+0000) Subject: add support for conditional depends to the feeds script X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=4c159ae4d38216a05f4ffb704c686139e3d09b48 add support for conditional depends to the feeds script SVN-Revision: 13004 --- 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; } }