Changeset 11120 for trunk/Padre/lib/Padre/Action/Tools.pm
- Timestamp:
- 03/15/10 04:51:54 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Action/Tools.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Action/Tools.pm
r11108 r11120 253 253 # Find 'cpanm', used to install modules 254 254 require Config; 255 my %seen = (); 256 my @where = grep { 257 defined $_ and length $_ and not $seen{$_}++ 258 } map { 259 $Config::Config{$_} 260 } qw{ 255 my %seen = (); 256 my @where = grep { defined $_ and length $_ and not $seen{$_}++ } map { $Config::Config{$_} } qw{ 261 257 sitescriptexp 262 258 sitebinexp … … 267 263 }; 268 264 my $cpanm = ''; 269 foreach my $dir ( @where ) { 265 266 foreach my $dir (@where) { 270 267 my $path = File::Spec->catfile( $dir, 'cpanm' ); 271 268 if ( -f $path ) { … … 274 271 } 275 272 } 276 unless ( $cpanm) {273 unless ($cpanm) { 277 274 $main->error( Wx::gettext("cpanm is unexpectedly not installed") ); 278 275 return;
Note: See TracChangeset
for help on using the changeset viewer.
