Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 46249
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: JMASTROS [...] cpan.org
Cc: james [...] mastros.biz
AdminCc:

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



CC: james [...] mastros.biz
Subject: Upgrade requires 'x' because of change in .stored format
At some point, the .stored format changed keys. Newer cpanplusses will treat the file as completely valid, but think that no modules exist, and do so without any sort of useful diagnostics. Relatedly, cpanplus leaves around obsolete files whenever Storeable is upgraded. Suggestion: When no modules exist, throw away all caches, and reload. When .stored files cannot be loaded (retrieve returns undef or throws an exception), throw away the file. Store a ->{version} key that is $cb->VERSION, and if it doesn't match, throw away the file. After this, the .stored files no longer need version numbers in the name, and thus CPANPLUS will no longer leave around obsolete cache files.
Thanks for the report. I've taken a slightly easier approach: CPANPLUS now stores it's own version + that of storable in the .stored files to ensure the .stored file is compatible with your CPANPLUS. Additionally, all .stored files are whiped when you update your CPANPLUS