summaryrefslogtreecommitdiffstats
path: root/bin/metas/perl.d
diff options
context:
space:
mode:
Diffstat (limited to 'bin/metas/perl.d')
-rwxr-xr-xbin/metas/perl.d/perl-dist26
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/metas/perl.d/perl-dist b/bin/metas/perl.d/perl-dist
index a27ee7b..c6ae35b 100755
--- a/bin/metas/perl.d/perl-dist
+++ b/bin/metas/perl.d/perl-dist
@@ -176,32 +176,6 @@ sub _reqs2deps
next CPAN_DEP_LOOP;
}
-# Ideally we could take advantage of the perl package's provides list
-# and add dependencies for core modules.
-
-# This is more robust and handles the problem of packages built
-# with a different version of perl than the perl that is present
-# when the package is installed.
-
-# The problem is that the perl package provides list still needs work.
-# While I was trying to generate a provides list I noticed the
-# Module::CoreList module had some incorrect version numbers
-# as well. So until I get around to reporting these bugs I will
-# just go back to not depending on packages provided by perl.
-
- # 0+$] is needed to force the perl version into number-dom
- # otherwise trailing zeros cause problems
- my $bundled_version = $Module::CoreList::version{0+$]}->{$name};
- if($bundled_version) {
- # Avoid parsing an empty string (causes an error) or 0.
- next CPAN_DEP_LOOP unless($ver);
-
- # Avoid parsing a bundled version of 0. Is this possible?
- my $bundle_vobj = version->parse($bundled_version);
- my $dep_vobj = version->parse($ver);
- next CPAN_DEP_LOOP if($bundle_vobj >= $dep_vobj);
- }
-
my $dist = _distofmod($name);
my $pkgname = dist_pkgname($dist);