Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Mini CPAN distribution.

Report information
The Basics
Id: 38907
Status: resolved
Priority: 0/
Queue: CPAN-Mini

People
Owner: Nobody in particular
Requestors: typester [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Warning flood in quiet mode with perl 5.10
I noticed that minicpan command prints many uninitialized warnings in quiet mode with my perl 5.10 machine like following: $ minicpan -q -l ~/minicpan -r http://ftp.jaist.ac.jp/pub/CPAN/ Use of uninitialized value $path in length at /usr/share/perl/5.10/File/Path.pm line 97. Use of uninitialized value $path in length at /usr/share/perl/5.10/File/Path.pm line 97. Use of uninitialized value $path in length at /usr/share/perl/5.10/File/Path.pm line 97. : : (more) I've written "$self->{trace} ||= 0" in CPAN::Mini::new, warnings are disapeared. This might be File::Path's issue, but I hope this to be fixed. Thanks.
On Di. 02. Sep. 2008, 01:53:10, TYPESTER wrote: Show quoted text
> I noticed that minicpan command prints many uninitialized warnings in > quiet mode with my perl 5.10 machine like following: > [...] > This might be File::Path's issue, but I hope this to be fixed.
Yes - this seems to be partly an issue with File::Path now having two interfaces. I had a spurious directory C<457> appear in the minicpan home directory, which was the mode number for the directory. I patched CPAN::Mini to use the new API explicitly: File::Path::mkpath($self->{local}, $self->{trace}, { mode => $self->{dirmode} }) unless -e $self->{local}; That way, the C<undefined> warnings disappeared and the bogus directory doesn't get created either. This works with at least File::Path 2.04, which is what I have. -max
undef dirmode fixed -- rjbs