Subject: | Insufficent precision in "cpan -O" report |
cpan -O reports the list of locally installed modules out of date.
Its output is "module old_version $new_version" but version are truncated 4 digits after the dot.
But sometimes, it's not enough to show the version difference. I propose to show 9 digits after the dot, which should be more than enough to cope with traditional perl versioning.
Attached patch implements this.
Before patch:
[...]
Data::Section 0.20000 0.20000
[...]
After patch:
[...]
Data::Section 0.200005000 0.200006000
[...]
Subject: | App-Cpan-1.5902-increase_cpan-O_precision.patch |
--- lib/App/Cpan.pm.orig 2014-03-14 11:39:57.627219844 +0100
+++ lib/App/Cpan.pm 2014-03-14 11:39:15.802990159 +0100
@@ -1175,7 +1175,7 @@
{
next unless $module->inst_file;
next if $module->uptodate;
- printf "%-40s %.4f %.4f\n",
+ printf "%-40s %.9f %.9f\n",
$module->id,
$module->inst_version ? $module->inst_version : '',
$module->cpan_version;