Show quoted text> This message about CPANPLUS was sent to you by guest via rt.cpan.org
>
> Full context and any attached attachments can be found at:
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=748 >
>
> Hi.
>
> We use CPAN mirror that we use for automated installs within the
> company in order to avoid hammering the public CPAN mirrors too much.
>
> Periodically I update this whenever CPAN starts winging about stale index
> files too much. CPANPLUS doesn't do this, and it would be nice if it
> did warn you when your mirror is out of date.
Show quoted text> could you send me a hint/patch how to deactivate it immediately in my
> installation? Background: I'm testing heavily, and these delays take a lot
of
Show quoted text> developing time, so deactivating them would be a real help.
>
> Thanks in advance
>
> Jochen
currently, CPANPLUS will update it's source files once a day.
(or more accurately, as soon as you request to parse the source files and it
turns out they are older than
time() - 86400 seconds)
you can change how often CPANPLUS fetches the source files:
open your Config.pm ( you can access it via your program too, i'll show you
in a bit) and change the 'update' key under '_source' to some rather HIGH
number (remember this is seconds) and it will take quite a while before we
refetch.
or, do it like this:
$configure_object->_set_source(update => 10e90);
(and perhaps do a $configure_object->save to save the config)
OR do a touch() on the sourcefiles, to update their timestamp and fool
cpanplus
however, we can not really see if your mirror is 'too' out of date...
technically, the source files
get updated at least once a day, so that means that it is *really* out of
date within a day.
setting the update time to something you find acceptable is the best course
of action here.
hope this helps,
jos