The version hashref for a dist includes a new type of entry for corelist modules. #191
briandfoy
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In #190, sparrow2009 discovered that perl core has releases of dual-lived modules that are not on CPAN, such as IPC::Cmd 0.92_01. As such, MetaCPAN's API does not know they exist for the
IPC-Cmd
distro. In the data structure, the versions are stored in$db->{dist}{$dist}{'versions'}
, which is an array that has hashrefs as values:I now augment this with data I infer from corelist. I push additional hashrefs for the versions not already represented in the array, and I add a couple more fields to that hashref to distinguish the source:
This shouldn't affect any accesses since these augmented hashrefs since it has the same keys. If you check that there are only two keys as before, or doing some other sort of validation, you might have to adjust that.
Beta Was this translation helpful? Give feedback.
All reactions