Permalink
Browse files

remove Shell dependency, bug #421247

Shell was removed from Perl 5.16 core
replaced by system calls
  • Loading branch information...
1 parent 5bce40b commit 664960e663e9d94b79471dc23ce57bbe4f7cc6c3 @bor committed Jun 24, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/Gentoo/CPAN.pm
View
@@ -11,7 +11,6 @@ use YAML::Node;
use Memoize;
use Cwd qw(getcwd abs_path cwd);
use File::Basename;
-use Shell qw(perl);
memoize('transformCPAN');
memoize('FindDeps');
@@ -196,13 +195,13 @@ sub unpackModule {
chdir($tmp_dir) or die "Unable to enter dir $tmp_dir:$!\n";
# If we have a Makefile.PL, run it to generate Makefile
- if ( -f "Makefile.PL" ) {
- perl("Makefile.PL",'</dev/null');
+ if ( -f 'Makefile.PL' ) {
+ system('perl Makefile.PL </dev/null');
}
# If we have a Build.PL, run it to generate the Build script
- if ( -f "Build.PL" ) {
- perl("Build.PL",'</dev/null');
+ if ( -f 'Build.PL' ) {
+ system('perl Build.PL </dev/null');
}
# Return whence we came

0 comments on commit 664960e

Please sign in to comment.