HomeSoftware Heritage

cpan: Fix module version extraction for some edge cases

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

cpan: Fix module version extraction for some edge cases

CPAN API can return versions that are not of str type: either
int or float.

When version equals 0, it means that version failed to be parsed
by CPAN so we try to extract it from release name in that case.

Otherwise we ensure to convert the version to str type.

Related to T2833

Commit No Longer Exists

This commit no longer exists in the repository.