diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-03-21 12:04:44 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-03-21 12:28:11 +0100 |
commit | 67181962bfb285bf09a16432a7c2ed788643465e (patch) | |
tree | 282f42e4d695f516cb4a42fc5f2579fb991d14c4 | |
parent | 122bcd7cb27d10f0664318fa10334cd81ff06e20 (diff) | |
download | abuild-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.
-rw-r--r-- | apkbuild-cpan.in | 3 |
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; } |