Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Problems? Is your data what you think it is?
 
PerlMonks  

(kudra) Re3: To install a module...

by kudra (Vicar)
on Sep 28, 2002 at 10:15 UTC ( #201434=note: print w/ replies, xml ) Need Help??


in reply to •Re: (kudra: CPANPLUS) Re: To install a module...
in thread To install a module...

Index files are reloaded if you start to use them and they are older than one day at the time. You can force a reload in the backend object with my $reload = $cp->reload_indices(update_source => 1); (in the shell it's the 'x' command) and it is also possible to change the update time with the private method $conf->_set_source( update => '1000' ). The first method is documented in Backend.pm.

By 'no setting for the current CPAN archive', do you mean modifying the URI list based upon where you are? You can set environment variables to do this:

#!/usr/bin/perl BEGIN { $ENV{ftp_proxy} = 'current.domain.org'; } use CPANPLUS; shell();
This example comes from the FAQ. "Can I use a local mirror..." might also be appropriate; I'm not completely sure what you're pointing out.

You can mail the bugs list or the general suggestion list, cpanplus-bugs and cpanplus-info respectively, at lists.sourceforget.net to report bugs or make suggestions. Other contact information is also found on the sourceforge pages.


Comment on (kudra) Re3: To install a module...
Select or Download Code
•Re: (kudra) Re3: To install a module...
by merlyn (Sage) on Sep 28, 2002 at 12:36 UTC
    OK, so the answer to the first one is that CPANPLUS assumes a policy of "reload after one day" instead of CPAN.pm's "reload after a user-specifiable period of time". That makes sense, but wasn't documented yet.

    As for the second, no. I'm talking about the CPAN mirror setting, like getting the CPAN from http://www.cpan.org/ when I'm online, or getting it from my file:///Users/merlyn/CPAN/ when I'm offline. In CPAN.pm, that's a simple "o conf urllist unshift BLAH". But there appears to be only a very truncated list of settings in CPANPLUS (so far?), and "current CPAN" is not one of them.

    It has nothing to do with FTP proxy settings.

    -- Randal L. Schwartz, Perl hacker

      True, the reload time is not documented as far as I know. It will be added to the FAQ.

      With the mirror settings, the second FAQ point for a local site is closer to what you want. If the site you list first isn't found, it will fall back to the second site. Which means you could probably get what you want by listing your local archive as the second site on your list.

      But I see you have sent mail to the list, which is probably best for discussing features in detail (I just include this reply for anyone else reading the thread).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://201434]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2014-04-17 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (445 votes), past polls