add support for conditional depends to the feeds script

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13004 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2008-10-18 19:36:44 +00:00
parent ccf505ab9d
commit e011924511
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}