On Thu, 24 Aug 2006 14:05:34 +0100 Andy Armstrong <[EMAIL PROTECTED]> wrote: > On 24 Aug 2006, at 13:59, David Golden wrote: > What specifically is imacat doing that makes her an example of best > practice and how may others do something similar?
This may be off-topic. I do not know what is "best practice", but this is my configuration. It's a result of my repeatly experiment on the issues I encountered. There may still be improvement. The commented "force" issue is already submitted to rt.cpan.org is dealed. It will be fixed in the next release of CPANPLUS. http://rt.cpan.org/Ticket/Display.html?id=20640 Thanks to Robert Rothenberg on his CPAN-YACSmoke. But it's a little tricky to tweak the CPANPLUS::Configure instance used by CPAN::YACSmoke. This is not documented. From peeping into the code there are 2 instances of CPANPLUS::Configure inside. Both are effective. Robert may not be aware that someone might try to alter CPANPLUS::Configure after initializing the CPAN::YACSmoke object. Hope this helps. Please tell me if you need any more information. =============== $smoke = new CPAN::YACSmoke; # No storable -- always test packages, no matter tested before or not $smoke->{"conf"}->set_conf("storable", 0); $smoke->{"cpan"}->configure_object->set_conf("storable", 0); # Force test even if been tested # See CPANPLUS::Dist::MM. "force" make test always passed #$smoke->{"force"} = 1; #$smoke->{"conf"}->set_conf("force", 1); #$smoke->{"cpan"}->configure_object->set_conf("force", 1); # Send the test result $smoke->{"cpantest"} = 1; $smoke->{"conf"}->set_conf("cpantest", 1); $smoke->{"cpan"}->configure_object->set_conf("cpantest", 1); # Follow the prerequisites automatically $smoke->{"prereqs"} = 1; $smoke->{"conf"}->set_conf("prereqs", 1); $smoke->{"cpan"}->configure_object->set_conf("prereqs", 1); # Be verbose $smoke->{"verbose"} = 1; $smoke->{"conf"}->set_conf("verbose", 1); $smoke->{"cpan"}->configure_object->set_conf("verbose", 1); # Use http://www.cpan.org/ as source $smoke->{"conf"}->set_conf("hosts", [{ 'host' => 'www.cpan.org', 'path' => '/', 'scheme' => 'http' }]); $smoke->{"cpan"}->configure_object->set_conf("hosts", [{ 'host' => 'www.cpan.org', 'path' => '/', 'scheme' => 'http' }]); ============== -- Best regards, imacat ^_*' <[EMAIL PROTECTED]> PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt <<Woman's Voice>> News: http://www.wov.idv.tw/ Tavern IMACAT's: http://www.imacat.idv.tw/ TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
pgpDSDIxfvIlu.pgp
Description: PGP signature