mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-08 05:07:43 +00:00
apkbuild-cpan.in: remove duplicates from each of depends
This commit is contained in:
parent
3129c7bcdb
commit
4544a479d1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user