cpan> r
always returns for PodParser-1.23 the follwing line, which is wrong. It always complains that there's a newer version available.


Pod::Checker 1.2 1.4 M/MA/MAREKR/PodParser-1.23.tar.gz

I debugged it down to these following bugs:

CPAN_VERSION should be 1.23, not 1.4
$module->inst_version should return 1.23, not 1.2
I currently cannot imagine where the 1.2 is from.
The version should be read from Makefile.PL VERSION => '1.23', there's no VERSION_FROM entry.
$module->ID resp. $inst_file should be Pod::Parser, not Pod::Checker (which is where the wrong version comes from)


BTW: shouldn't 'userid' be MAREKR (the current maintainer), not BRADAPP (the original author)?

Interestingly Pod::Parser is the only module which fails with the wrong version on my installed CPAN set.

  DB<31> x $module
0  CPAN::Module=HASH(0x99cf084)
   'ID' => 'Pod::Checker'
   'RO' => HASH(0x99d0578)
      'CPAN_FILE' => 'M/MA/MAREKR/PodParser-1.23.tar.gz'
      'CPAN_USERID' => 'MAREKR'
      'CPAN_VERSION' => 1.4
      'chapterid' => ' 2'
      'description' => 'Check pod documents for syntax errors'
      'statd' => 'R'
      'stati' => 'O'
      'statl' => 'p'
      'statp' => '?'
      'stats' => 'd'
      'userid' => 'BRADAPP'
  DB<32> x $latest
0  1.4
  DB<33> x $have
0  1.2
  DB<34> x $inst_file
0  '/usr/lib/perl5/Pod/Checker.pm'

Before I investigate a possible MM or CPAN problem, I would like to know if this is known problem.
For a short term fix I would ask Marek to change the VERSION in Pod::Checker to 1.23 (ugly hack)
and change the Makefile.PL VERSION line to
'VERSION_FROM' => 'Pod::Checker'


For a better fix probably CPAN or MM has to be improved.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/



Reply via email to