apkbuild-cpan.in: remove duplicates from each of depends

This commit is contained in:
Timothy Legge 2020-12-22 23:58:37 +00:00 committed by Natanael Copa
parent 3129c7bcdb
commit 4544a479d1
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ use CPAN::Meta;
use Module::CoreList;
use JSON;
use Text::Wrap qw(wrap $columns);
use List::Util qw (uniq);
my $license_mappings = {
"perl_5" => "GPL-1.0-or-later OR Artistic-1.0-Perl",
@ -295,6 +296,9 @@ sub sort_pkgs_by_orig {
push @tmp, $name;
}
# remove any duplicates
uniq @tmp;
return join(" ", @tmp);
}