summaryrefslogtreecommitdiffstats
path: root/apkbuild-cpan.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-03-21 12:04:44 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2019-03-21 12:28:11 +0100
commit67181962bfb285bf09a16432a7c2ed788643465e (patch)
tree282f42e4d695f516cb4a42fc5f2579fb991d14c4 /apkbuild-cpan.in
parent122bcd7cb27d10f0664318fa10334cd81ff06e20 (diff)
downloadabuild-67181962bfb285bf09a16432a7c2ed788643465e.tar.bz2
abuild-67181962bfb285bf09a16432a7c2ed788643465e.tar.xz
apkbuild-cpan: include modules that used to be part of core
we need to check if a given module currently is a part of core. Modules which have a first_release may have been removed later, for example Module::Build.
Diffstat (limited to 'apkbuild-cpan.in')
-rw-r--r--apkbuild-cpan.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 5400a4a..4a72192 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -125,7 +125,8 @@ sub parse_deps {
my $deps = "";
for my $module ($reqs->required_modules) {
- if (my $perlver = Module::CoreList->first_release($module)) {
+ if (Module::CoreList->is_core($module)) {
+ my $perlver = Module::CoreList->first_release($module);
say "$module is part of core perl since $perlver.";
next;
}