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 78e65ad1d5c184584d34a122bd8376751885141d..f1baad5766dd2742c78c40211a5afd1f9e0b6f90 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;