X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/24dc54436e0d0e809d0822fb86105bd72326c30a..5e05dca5eeb6b4b7bde6dcfeb92fbbed8c17d405:/lib/CPAN/FirstTime.pm?ds=sidebyside diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index 9bd12f3..cd2c49d 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -16,7 +16,7 @@ use FileHandle (); use File::Basename (); use File::Path (); use vars qw($VERSION); -$VERSION = substr q$Revision: 1.40 $, 10; +$VERSION = substr q$Revision: 1.41 $, 10; =head1 NAME @@ -174,6 +174,20 @@ disable the cache scanning with 'never'. } while ($ans ne 'atstart' && $ans ne 'never'); $CPAN::Config->{scan_cache} = $ans; + print qq{ + +To speed up the initial CPAN shell startup, it is possible to use +Storable or FreezeThaw to create an cache of metadata. If no +serializer is avaiable, the normal index mechanism will be used. + +}; + + defined($default = $CPAN::Config->{cache_metadata}) or $default = 1; + do { + $ans = prompt("Cache metadata (yes/no)?", ($default ? 'yes' : 'no')); + } while ($ans !~ /^\s*[yn]/i); + $CPAN::Config->{cache_metadata} = ($ans =~ /^\s*y/i ? 1 : 0); + # # prerequisites_policy # Do we follow PREREQ_PM?