Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Turn short-name lookup files into directories
This may become part of CompUnit::Repository::Installation format v1. Having to change any already existing files on installation of a module makes it more difficult to package modules for Linux distributions. So we replace the short-name lookup files in a repo's short/ directory by directories. The files there are named after the dist's hash and contain the version, auth and api fields so we can find the one true candidate without having to parse any JSON at all. Only the winner dist's JSON will even be read. As version, auth and api are separated by newlines without any escaping, those values themselves may no longer contain newlines. This should be a very reasonable restriction in any case.
- Loading branch information
Showing
1 changed file
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters