Created
March 21, 2020 12:28
-
-
Save timlegge/5069503e97d04e85bd13ae1329ee75e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| my $mc = MetaCPAN::Client->new; | |
| my $query = { | |
| all => [ | |
| { provides => $module }, | |
| { status => 'latest' }, | |
| ] | |
| }; | |
| my $results = $mc->release($query, { fields => | |
| [qw/ name download_url abstract distribution version /] }); | |
| if ($results->total == 0) { | |
| die "Unable to find module named $module\n"; | |
| } | |
| my $moddata = $results->next; | |
| my $apkname = map_cpan_to_apk( $moddata->distribution); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment