summaryrefslogtreecommitdiff
path: root/www/rt36/files/patch-tools-testdeps
blob: b4e392a23cec186691b521e73e5cf105326562c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- tools/testdeps	Thu Feb 28 14:38:10 2002
+++ tools/testdeps	Thu Aug 15 16:43:45 2002
@@ -107,7 +107,11 @@
 	$module = "DBD::mysql::Install" if ($module =~ /DBD::mysql/);
 	
         print "Installing with CPAN...";
-        CPAN::install($module);
+	require CPAN::FirstTime;  # shut up configuration
+	no strict 'refs';
+	local $^W;
+	*{'ExtUtils::MakeMaker::prompt'} = sub ($;$) { '' };
+        CPAN::force('install', $module);
      }
      print "\n";
 	exit(1) if ($mode =~ /-q/);