According to perldoc pinto-admin, it is possible to use the PINTO_REPOSITORY environment variable to point to the root dir of my repository.
[omniture@omnituretest ~]$ export PINTO_REPOSITORY=/store/Perl/CPAN/mirror_20120314
[omniture@omnituretest ~]$ mkdir $PINTO_REPOSITORY
[omniture@omnituretest ~]$ pinto-admin -vvv create
Must specify a repository root directory at /store/Perl//5.14.2/lib/perl5/site_perl/5.14.2/App/Pinto/Admin/Command/create.pm line 52.
[omniture@omnituretest ~]$ pinto-admin -vvv --root=$PINTO_REPOSITORY create
Making directory /store/Perl/CPAN/mirror_20120314/.pinto/config
Making directory /store/Perl/CPAN/mirror_20120314/modules
Making directory /store/Perl/CPAN/mirror_20120314/.pinto/cache
Making directory /store/Perl/CPAN/mirror_20120314/.pinto/db
Creating database at /store/Perl/CPAN/mirror_20120314/.pinto/db/pinto.db
Writing index at /store/Perl/CPAN/mirror_20120314/modules/02packages.details.txt.gz
Making directory /store/Perl/CPAN/mirror_20120314/authors
Created new repository at directory /store/Perl/CPAN/mirror_20120314
[omniture@omnituretest ~]$ pinto-admin -vvv import PNI
Error: Must specify a repository root directory
Usage: pinto-admin [-qrv] [long options...]
-r --root Path to your repository root directory
--nocolor Do not colorize diagnostic messages
-q --quiet Only report fatal errors
-v --verbose More diagnostic output (repeatable)
Fixed issue #5
Fixed and released to the CPAN as Pinto-0.033. Thanks for reporting this!
Thanks, this is not a blocker problem, but it is really confortable to just set my env ( was the first thing I did :)
I also fixed the problem you saw with the index file not being updated after importing. It's all in version 0.033. Cheers!
Great! Thank you very much, so now Pinto + cpanm can be officially adopted in my job place as CPAN mirror system. I will report you other issues or feedback I can give you to contribute.
Cheers and congratulations for your work!