fix scripts/feeds dependency lookup: process deps for all virtual packages of a src...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Aug 2008 22:03:28 +0000 (22:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 4 Aug 2008 22:03:28 +0000 (22:03 +0000)
SVN-Revision: 12101

scripts/feeds

index 78e65ad..f1baad5 100755 (executable)
@@ -280,10 +280,12 @@ sub install_package {
        };
 
        # install all dependencies
-       foreach my $dep (@{$pkg->{depends}}, @{$pkg->{builddepends}}) {
-               next if $dep =~ /@/;
-               $dep =~ s/^\+//;
-               install_package($feed, $dep) == 0 or $ret = 1;
+       foreach my $vpkg (@{$srcpackage{$src}}) {
+               foreach my $dep (@{$vpkg->{depends}}, @{$vpkg->{builddepends}}) {
+                       next if $dep =~ /@/;
+                       $dep =~ s/^\+//;
+                       install_package($feed, $dep) == 0 or $ret = 1;
+               }
        }
 
        return $ret;