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 Module::CoreList;
|
||||||
use JSON;
|
use JSON;
|
||||||
use Text::Wrap qw(wrap $columns);
|
use Text::Wrap qw(wrap $columns);
|
||||||
|
use List::Util qw (uniq);
|
||||||
|
|
||||||
my $license_mappings = {
|
my $license_mappings = {
|
||||||
"perl_5" => "GPL-1.0-or-later OR Artistic-1.0-Perl",
|
"perl_5" => "GPL-1.0-or-later OR Artistic-1.0-Perl",
|
||||||
|
@ -295,6 +296,9 @@ sub sort_pkgs_by_orig {
|
||||||
push @tmp, $name;
|
push @tmp, $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# remove any duplicates
|
||||||
|
uniq @tmp;
|
||||||
|
|
||||||
return join(" ", @tmp);
|
return join(" ", @tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue