Skip Menu |

This queue is for tickets about the CPAN-SQLite CPAN distribution.

Report information
The Basics
Id: 133151
Status: open
Priority: 0/
Queue: CPAN-SQLite

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.219
Fixed in: (no value)



Subject: CPAN::PackageDetails is not present in DB
CPAN::PackageDetails is present in 02packages.details.txt.gz with CPAN::SQLite: Show quoted text
cpan> i CPAN::PackageDetails
CPAN: CPAN::SQLite loaded ok (v0.219) Database was generated on Tue, 11 Aug 2020 19:29:39 GMT No objects found of any type for argument CPAN::PackageDetails without CPAN::SQLite: Show quoted text
cpan> i CPAN::PackageDetails
Reading 'C:\STRAWB~1\cpan\Metadata' Database was generated on Tue, 11 Aug 2020 17:17:03 GMT Module id = CPAN::PackageDetails CPAN_USERID BDFOY (brian d foy <bdfoy@cpan.org>) CPAN_VERSION 0.261 CPAN_FILE B/BD/BDFOY/CPAN-PackageDetails-0.261.tar.gz UPLOAD_DATE 2018-06-12 INST_FILE (not installed) -- Alexandr Ciornii, http://chorny.net
On Tue Aug 11 16:48:22 2020, CHORNY wrote: Show quoted text
> Module id = CPAN::PackageDetails > CPAN_USERID BDFOY (brian d foy <bdfoy@cpan.org>) > CPAN_VERSION 0.261 > CPAN_FILE B/BD/BDFOY/CPAN-PackageDetails-0.261.tar.gz > UPLOAD_DATE 2018-06-12 > INST_FILE (not installed) >
CPAN::SQLite doesn't index back files. Basically, the problem is here: CPAN::PackageDetails 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.261.tar.gz CPAN::PackageDetails::Entries 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz CPAN::PackageDetails::Entry 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz CPAN::PackageDetails::Header 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz CPAN::PackageDetails::PerlHash 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz CPAN::PackageDetails::Redis 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz Specifically, CPAN::PackageDetails is referenced to CPAN-PackageDetails-0.261.tar.gz, the rest of the modules are referenced to B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz So what happens here, CPAN::SQLite realizes that CPAN::PackageDetails is not in the latest version (0.262.tar.gz) and therefore removes it from the index. Interestingly enough, 0.262.tar.gz actually has CPAN::PackageDetails version 0.262. But for some reason, whatever program generates 02packages.details.txt, it contains a bug that produces incorrect file reference to the older version why in ideal world it would be: CPAN::PackageDetails 0.262 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz CPAN::PackageDetails::Entries 0.261 B/BD/BDFOY/CPAN-PackageDetails-0.262.tar.gz [...] Because CPAN::SQLite treats 02packages.details as the source of truth, it processes it accordingly. If 02packages.details generation gets fixed, the problem should naturally go away. -- Serguei Trouchelle