Subject: | RECENT is saved in wrong directory |
Both RECENT file and cpansmoke.dat.* files are saved in .cpanplus directory.
However, when configuration of CPANPLUS changes, specifically
CPAN::Config->{base} (e.g. through setting PERL5_YACSMOKE_BASE),
cpansmoke.dat.* are saved in the new directory, while RECENT are still
being placed in $HOME/.cpanplus.
It would be nice, if the module be consistent with CPANPLUS::Config
settings. It looks as simple as:
--- YACSmoke.pm 2010-03-25 11:12:27.000000000 +0100
+++ YACSmoke.pm 2010-04-09 00:36:45.000000000 +0200
@@ -340,7 +340,7 @@
sub _download_list {
my $self = shift;
- my $path = catdir( CPANPLUS::Internals::Utils->_home_dir(),
'.cpanplus' );
+ my $path = $self->{conf}->get_conf('base');
my $local = catfile( $path, RECENT_FILE );
my $hosts = $self->{conf}->get_conf('hosts');