add support for conditional depends to the feeds script

SVN-Revision: 13004
This commit is contained in:
Felix Fietkau 2008-10-18 19:36:44 +00:00
parent b4dc9c47ef
commit df90f52b5a

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