mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-07 20:57:35 +00:00
apkbuild-cpan.in: use distribution name cached in %distfiles
instead of sending a duplicate query to metacpan
follow up from what was done in
e448c9a452
This commit is contained in:
parent
5710eefb63
commit
19bebd8497
@ -257,10 +257,8 @@ sub parse_deps {
|
||||
}
|
||||
|
||||
# map package names to alpine packages
|
||||
foreach ( sort keys %{$distfiles} ) {
|
||||
my $distdata = query_metacpan( module => $_ );
|
||||
|
||||
my $pkgname = map_cpan_to_apk( $distdata->{distribution} );
|
||||
foreach my $module ( sort keys %{$distfiles} ) {
|
||||
my $pkgname = map_cpan_to_apk( $distfiles->{$module} );
|
||||
$deps .= "$pkgname " unless $deps =~ m/\b$pkgname\b/;
|
||||
}
|
||||
$deps =~ s/\h+/ /g;
|
||||
|
Loading…
Reference in New Issue
Block a user