Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync distribution permissions from CPAN #24

Open
preaction opened this issue Jun 18, 2018 · 0 comments
Open

Sync distribution permissions from CPAN #24

preaction opened this issue Jun 18, 2018 · 0 comments

Comments

@preaction
Copy link
Member

Once a user has been authorized to a PAUSE account (cpan-testers/cpantesters-web#14), we need to know what distributions that user is now authorized to manage.

CPAN distributes the permissions of modules in the 06perms.txt file. Neil Bowers has written a module to parse this: PAUSE::Permissions. This module can map PAUSE authors to modules.

To map that module to a distribution file, we can use CPAN::Common::Index.

Once we have that distribution file, we need to map it to a distribution name using CPAN::DistnameInfo.

Finally, we can store that information in a new table, UploadPerms, which includes the PAUSE ID, and the distribution they have access to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant