Permalink
Browse files

Fixes a leading space problem in PREREQ_PM

  • Loading branch information...
1 parent d740fce commit 951809c69d7dc1c40526dd6ff0ac5fd1510409f6 @yannk committed May 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/App/cpanminus/script.pm
View
2 lib/App/cpanminus/script.pm
@@ -1073,7 +1073,7 @@ sub find_prereqs {
$self->chat("Finding PREREQ from Makefile ...\n");
open my $mf, "Makefile";
while (<$mf>) {
- if (/^\#\s+PREREQ_PM => {(.*?)}/) {
+ if (/^\#\s+PREREQ_PM => {\s*(.*?)\s*}/) {
my @all;
my @pairs = split ', ', $1;
for (@pairs) {

0 comments on commit 951809c

Please sign in to comment.