From 9c8022b6a4aee0877c665ba6ad060ff44283b267 Mon Sep 17 00:00:00 2001 From: Nicolas R Date: Tue, 12 Feb 2019 18:07:23 -0600 Subject: [PATCH] CPAN::Config use manual install as default for root 'local::lib' seems to be a good default choice for unprivileged users, but when cpan is run by root we should consider using 'manual' as the default option. --- lib/CPAN/FirstTime.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index d45414f93..bbf597033 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -846,7 +846,7 @@ sub init { ) { local $auto_config = 0; # We *must* ask, even under autoconfig local *_real_prompt; # We *must* show prompt - my_prompt_loop(install_help => 'local::lib', $matcher, + my_prompt_loop(install_help => ( $> == 0 ? 'manual' : 'local::lib' ), $matcher, 'local::lib|sudo|manual'); } $CPAN::Config->{install_help} ||= ''; # Temporary to suppress warnings