scripts/feeds: properly handle virtual packages as well, use the first available...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Aug 2008 22:22:43 +0000 (22:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 4 Aug 2008 22:22:43 +0000 (22:22 +0000)
SVN-Revision: 12103

scripts/metadata.pm

index a220231..fd18b18 100644 (file)
@@ -76,7 +76,13 @@ sub parse_package_metadata($) {
                /^Provides: \s*(.+)\s*$/ and do {
                        my @vpkg = split /\s+/, $1;
                        foreach my $vpkg (@vpkg) {
                /^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};
                        }
                };
                                push @{$package{$vpkg}->{vdepends}}, $pkg->{name};
                        }
                };