scripts/feeds: properly handle virtual packages as well, use the first available...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 Aug 2008 22:22:43 +0000 (22:22 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 Aug 2008 22:22:43 +0000 (22:22 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12103 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pm

index a220231f0d185071361c66ac227b84cac42c4fd4..fd18b18a29c039315f492cb938d392777f553071 100644 (file)
@@ -76,7 +76,13 @@ sub parse_package_metadata($) {
                /^Provides: \s*(.+)\s*$/ and do {
                        my @vpkg = split /\s+/, $1;
                        foreach my $vpkg (@vpkg) {
-                               $package{$vpkg} or $package{$vpkg} = { vdepends => [] };
+                               $package{$vpkg} or $package{$vpkg} = {
+                                       name => $vpkg,
+                                       vdepends => [],
+                                       src => $src,
+                                       subdir => $subdir,
+                                       makefile => $makefile
+                               };
                                push @{$package{$vpkg}->{vdepends}}, $pkg->{name};
                        }
                };