in reply to Configuring CPAN out of script does not work
CPAN.pm seems to always complain whenever it finds that one or more config item is missing and then offers a reconfiguration. The problem is, you write the config items manually from the script (if I get you correctly). You say you set them all. But installed CPAN.pm may have newer config item(s) you haven't handled yet. I touch my CPAN/MyConfig.pm very rarely. Yet when I upgrade CPAN.pm (with significant change on the config items), it will tell me about missing/uninitialized configuration item(s). For me, it's not a problem. I take it as part of the upgrading process.
So I don't think that the complain is due to some magical cheking in CPAN.pm (I haven't looked at the source code thoroughly but I won't bother for this case). One suggestion if you want to keep your method is: run the cpan for the first time as root to create the initial CPAN/Config.pm. It should be guaranteed that it will contain the complete items the current CPAN.pm has. Open the newly created file, take all its items, and override the ones with your own values, and save it back. It shouldn't be hard to modify your script. Good luck!
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Configuring CPAN out of script does not work
by isync (Hermit) on Aug 22, 2007 at 20:14 UTC |