aboutsummaryrefslogtreecommitdiffstats
path: root/perl-external
diff options
context:
space:
mode:
Diffstat (limited to 'perl-external')
-rwxr-xr-xperl-external/bin/module-manage.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/perl-external/bin/module-manage.pl b/perl-external/bin/module-manage.pl
index 060fb6742..707e6db8b 100755
--- a/perl-external/bin/module-manage.pl
+++ b/perl-external/bin/module-manage.pl
@@ -38,7 +38,6 @@ exit;
sub init {
add('App::cpanminus');
add('MyCPAN::App::DPAN');
- index_minicpan();
}
sub setup {
@@ -73,8 +72,13 @@ sub add {
sub index_minicpan {
# go to the minicpan dir and run dpan there
- chdir $minicpan;
- system "dpan -f ../dpan_config";
+ if ( `which dpan` =~ m/\S/ ) {
+ chdir $minicpan;
+ system "dpan -f ../dpan_config";
+ }
+ else {
+ warn "Skipping indexing - could not find dpan";
+ }
}
sub build_all {