Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix detecting modules in perl core, bug #189865

  • Loading branch information...
commit b547919a61165c632e9dc79299d266761305434d 1 parent 3730d64
Sergiy Borodych authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  bin/g-cpan
3  bin/g-cpan
@@ -522,6 +522,7 @@ sub generatePackageInfo
522 522 my $s_perl = new DirHandle($pkgdbdir);
523 523 my $eb = $ebuild_wanted;
524 524 $eb =~ s{::}{/}gxs;
  525 + $eb = '/' . $eb;
525 526 while (defined(my $read = $s_perl->read))
526 527 {
527 528 if ((-d $pkgdbdir . "/" . $read) and ($read =~ m{^perl}x))
@@ -533,7 +534,7 @@ sub generatePackageInfo
533 534 {
534 535 my $thisfile = (split(/ /, $_))[1];
535 536 $thisfile =~ s{\.([A-Za-z]{1,3})$}{};
536   - if ( ($thisfile =~ m{\Q$eb\E}x) && !defined($passed_to_install{$eb}) )
  537 + if ( ($thisfile =~ m{\Q$eb\E$}x) && !defined($passed_to_install{$eb}) )
537 538 {
538 539 spinner_stop();
539 540 print_info("$ebuild_wanted is part of the core perl install");

0 comments on commit b547919

Please sign in to comment.
Something went wrong with that request. Please try again.