diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2018-09-05 15:29:25 +0000 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2018-09-09 01:21:01 +0000 |
commit | 204081670b914795a494929777f09807b15f70f4 (patch) | |
tree | b9f377f82e4bda0778c4cf9bbe4406c23549354c | |
parent | ef01c1d308d1cb200fc14ab49f0d3d0a07e1a9fe (diff) | |
download | mtk-20170518-204081670b914795a494929777f09807b15f70f4.zip mtk-20170518-204081670b914795a494929777f09807b15f70f4.tar.gz mtk-20170518-204081670b914795a494929777f09807b15f70f4.tar.bz2 |
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>
-rw-r--r-- | scripts/metadata.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index e05e400..4a5464e 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; } |