andya / cpan--mini--inject Goto Github PK
View Code? Open in Web Editor NEWInject modules into a CPAN::Mini mirror.
Home Page: http://search.cpan.org/~andya/CPAN-Mini-Inject/
Inject modules into a CPAN::Mini mirror.
Home Page: http://search.cpan.org/~andya/CPAN-Mini-Inject/
Required option not specified: module version at /home/gpan/perl5/bin/mcpani line 102
here's my META.yml
---
abstract: MyPanTest
author:
- 'Caleb Cushing <[email protected]>'
build_requires:
English: 0
File::Find: 0
File::Temp: 0
Test::More: 0.88
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.300002, CPAN::Meta::Converter version 2.112621'
license: restrictive
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: MyPanTest
no_index:
file:
- perlcritic.rc
requires:
autodie: 0
perl: 5.014
strict: 0
utf8::all: 0
warnings: 0
resources: {}
version: v0.1.0
when running the following as cron jobs the --update
never seems to happen. I'm thinking because the --inject
is keeping the modules/*
files newer than what's on the mirror, as deleting them allows me to run an --update
manually without the "mirroring" showing them as up to date.
PERL5LIB="/home/gpan/perl5/lib/perl5/x86_64-linux-thread-multi:/home/gpan/perl5/lib/perl5"
7 6 * * * /home/gpan/perl5/bin/mcpani --update
3-59/15 * * * * /home/gpan/perl5/bin/mcpani --inject
please consider the important RT issue unable to contact the remote mirror (without Regexp::IPv6?)
Hi, first of all, thanks for CPAN::Mini::Inject, it's a great tool.
I have an issue though I'd like to fix. When I inject a new version of module that has already been injected (like injecting Foo 0.02 in a mirror where Foo 0.01 exist) the old line is not removed from 02packages.default.txt.gz
This makes cpanminus fail at downloading the correct version (it takes the first line it finds in the txt.gz file, which is the oldest one).
Would it be possible to make CPAN::Mini::Inject produce a file with only the last version injected?
Thanks.
It seems CPAN::Mini::Inject generates 02packages by sorting the package name case sensitively (using perl's built-in sort). https://metacpan.org/source/MITHALDU/CPAN-Mini-Inject-0.33/lib/CPAN/Mini/Inject.pm#L446
PAUSE does it case insensitively, and CPAN::Mini::Inject should do it the same.
https://github.com/andk/pause/blob/master/lib/PAUSE/mldistwatch.pm#L635
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.