diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/CPANPLUS/Config.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/CPANPLUS/Config.pm | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/tlpkg/tlperl/lib/CPANPLUS/Config.pm b/Master/tlpkg/tlperl/lib/CPANPLUS/Config.pm index e148b8fca75..26a056fe035 100644 --- a/Master/tlpkg/tlperl/lib/CPANPLUS/Config.pm +++ b/Master/tlpkg/tlperl/lib/CPANPLUS/Config.pm @@ -1,10 +1,10 @@ package CPANPLUS::Config; +use deprecate; use strict; use warnings; use base 'Object::Accessor'; - use base 'CPANPLUS::Internals::Utils'; use Config; @@ -20,6 +20,8 @@ use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext'; use Module::Load::Conditional qw[check_install]; use version; +use vars qw[$VERSION]; +$VERSION = "0.9135"; =pod @@ -166,7 +168,10 @@ Defaults to C<true>. =item base The directory CPANPLUS keeps all its build and state information in. -Defaults to ~/.cpanplus. +Defaults to ~/.cpanplus. If L<File::HomeDir> is available, that will +be used to work out your C<HOME> directory. This may be overriden by +setting the C<PERL5_CPANPLUS_HOME> environment variable, see +L<CPANPLUS::Config::HomeEnv> for more details. =cut @@ -282,6 +287,15 @@ etc. Defaults to 'false'. $Conf->{'conf'}->{'force'} = 0; +=item histfile + +A string containing the history filename of the CPANPLUS readline instance. + +=cut + + $Conf->{'conf'}->{'histfile'} = File::Spec->catdir( + __PACKAGE__->_home_dir, DOT_CPANPLUS, 'history' ); + =item lib An array ref holding directories to be added to C<@INC> when CPANPLUS |