http://www.perlmonks.org?node_id=201357


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

In my first attempts to use it, I noticed: Both of these will prevent me from using this module on a regular basis.

Is there a person or persons I should write with this feedback?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
(kudra) Re3: To install a module...
by kudra (Vicar) on Sep 28, 2002 at 10:15 UTC
    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.

      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).