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: 36302
Status: resolved
Priority: 0/
Queue: CPAN-Mini

People
Owner: Nobody in particular
Requestors: ank [...] ank.com.ar
Cc:
AdminCc:

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



Subject: [PATCH] Reject configuration keys that have no non-whitespace values; strip last spaces of each configuration line.
I my .minicpanrc I mistakenly added the line: local: /home/ank/minicpan with a trailing space. Minicpan then created a directory called "minicpan " (with the trailing space.) Diff for Mini.pm: 583c583 < if (/\A(\w+):\s*(.+)\Z/sm) { $config{$1} = $2; } --- Show quoted text
> if (/\A(\w+):\s*(\S.*?)\s*\Z/sm) { $config{$1} = $2; }
This also requires the value to contain at least one non-whitespace charactrer. - Andres N. Kievsky
fixed -- rjbs