Subject: | Wrong version number used for module dependencies which differs from distribution version |
When fetching the version number for a dependency it uses the version
number found in the META.yml file and not the one found in
02packages.details.txt.gz. This leads the wrong version number being
reported for modules where the version number is different from the one
used by the distribution.
For instance Net::FTP has a different version number than the libnet
distribution.
To fix this the version number can be read from the
02packages.details.txt.gz file instead of META.yml.
The following patch fixes the issue, but the code should probably be
improved before being applied.
293,297d292
< # A module can have a different version number than its
containing distribution
< if( $p->package($target) && defined $p->package($target)->version
() ){
< $version = $p->package($target)->version();
< }
<