aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-09-05 15:29:25 +0000
committerJo-Philipp Wich <jo@mein.io>2018-12-18 11:28:12 +0100
commitf5cf9b265f7825e54286d4dfc994e56ec722c0c5 (patch)
treea84a1dc9b481edd693b45ec162f564f7263303cf /scripts
parent0dbafc3a3a9becad5b50e9c2f8c86cc9eac0bfba (diff)
downloadupstream-f5cf9b265f7825e54286d4dfc994e56ec722c0c5.tar.gz
upstream-f5cf9b265f7825e54286d4dfc994e56ec722c0c5.tar.bz2
upstream-f5cf9b265f7825e54286d4dfc994e56ec722c0c5.zip
scripts/metadata.pm: avoid adding dup names in provides list
The need arises from building Open vSwitch kernel datapath modules, e.g. - kmod-openvswitch from Linux upstream - kmod-openvswitch-intree from openvswitch source code where both provides virtual package "kmod-openvswitch" for userspace packages to select and depend on Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> (backported from 204081670b914795a494929777f09807b15f70f4)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index e05e400991..4a5464edc0 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -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;
}