scripts/metadata.pm: avoid adding dup names in provides list
[openwrt/openwrt.git] / scripts / metadata.pm
index e05e400..4a5464e 100644 (file)
@@ -250,6 +250,7 @@ sub parse_package_metadata($) {
                        my @vpkg = split /\s+/, $1;
                        @{$pkg->{provides}} = ($pkg->{name}, @vpkg);
                        foreach my $vpkg (@vpkg) {
+                               next if ($vpkg eq $pkg->{name});
                                $vpackage{$vpkg} or $vpackage{$vpkg} = [];
                                push @{$vpackage{$vpkg}}, $pkg;
                        }