https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8298

            Bug ID: 8298
           Summary: Inconsistent versions at (Meta)CPAN
           Product: Spamassassin
           Version: 4.0.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Building & Packaging
          Assignee: dev@spamassassin.apache.org
          Reporter: mar...@telka.sk
  Target Milestone: Undefined

Created attachment 5986
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5986&action=edit
Test script for MetaCPAN lookup

The version information recorded at (Meta)CPAN is inconsistent.

Let's do this check (the cpan-version script is attached):

$ ./cpan-version Mail-SpamAssassin Mail::SpamAssassin
{
  "abstract": "Apache SpamAssassin is an extensible email filter which is used
to identify spam",
  "date": "2024-03-29T12:07:52",
  "distribution": "Mail-SpamAssassin",
  "download_url":
"https://cpan.metacpan.org/authors/id/S/SI/SIDNEY/Mail-SpamAssassin-4.0.1.tar.gz";,
  "main_module": "Mail::SpamAssassin",
  "status": "latest",
  "version": "4.000001"
}
{
  "abstract": "Spam detector and markup engine",
  "date": "2024-03-29T12:07:52",
  "distribution": "Mail-SpamAssassin",
  "download_url":
"https://cpan.metacpan.org/authors/id/S/SI/SIDNEY/Mail-SpamAssassin-4.0.1.tar.gz";,
  "status": "latest",
  "version": "v4.0.1"
}
$


We can see that the version is once recorded as "4.000001" and once as "v4.0.1"
(please also note the leading "v"), while the download URL contains "4.0.1" (no
leading "v") and at metacpan.org the version is noted as "4.0.1" too:
https://metacpan.org/dist/Mail-SpamAssassin


While looking at other software at (Meta)CPAN we can see that the version
usually match there:

$ ./cpan-version Mail-SPF Mail::SPF
{
  "abstract": "An object-oriented implementation of Sender Policy Framework",
  "date": "2024-09-23T05:01:28",
  "distribution": "Mail-SPF",
  "download_url":
"https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Mail-SPF-3.20240923.tar.gz";,
  "main_module": "Mail::SPF",
  "status": "latest",
  "version": "3.20240923"
}
{
  "abstract": "An object-oriented implementation of Sender Policy Framework",
  "date": "2024-09-23T05:01:28",
  "distribution": "Mail-SPF",
  "download_url":
"https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Mail-SPF-3.20240923.tar.gz";,
  "status": "latest",
  "version": "3.20240923"
}
$


Here is another (unrelated) distribution that uses "v" in its version number. 
Again, the version is consistent:

$ ./cpan-version podlators Pod::Man
{
  "abstract": "Convert POD data to various other formats",
  "date": "2024-07-14T19:58:09",
  "distribution": "podlators",
  "download_url":
"https://cpan.metacpan.org/authors/id/R/RR/RRA/podlators-v6.0.2.tar.gz";,
  "main_module": "Pod::Man",
  "status": "latest",
  "version": "v6.0.2"
}
{
  "abstract": "Convert POD data to formatted *roff input",
  "date": "2024-07-14T19:58:09",
  "distribution": "podlators",
  "download_url":
"https://cpan.metacpan.org/authors/id/R/RR/RRA/podlators-v6.0.2.tar.gz";,
  "status": "latest",
  "version": "v6.0.2"
}
$

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to