in reply to Offline cpan used by strawberry perl
hi
have you use o conf from cpan shell to add paths to urllist?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Offline cpan used by strawberry perl
by Dirk80 (Pilgrim) on Jan 31, 2020 at 15:06 UTC | |
Yes, I now tried to use o conf. But my problem remains. If the 01mailrc.txt.gz has an older date than today, it tries to fetch it via LWP. And this fails. And I want always to use my offline-cpan archive independent of having a connection to internet or not. Here the errors:
But the file exists. It just has a date of 27th of January instead of today. Cpan then renames my local file to e.g. 01mailrc.txt.gz.bak4400. Here my configuration:
| [reply] [d/l] [select] |
by Anonymous Monk on Jan 31, 2020 at 23:57 UTC | |
Trim your urllist ? And/or Tickle this value
CPANPLUS doesn't have a days, only a yes/no no_update | [reply] [d/l] |
by Dirk80 (Pilgrim) on Feb 01, 2020 at 07:36 UTC | |
Without being able to test it until monday. I'm very sure that setting the index_expire option to a high value is the solution. Because my problem were the index files. And it worked on the same day, but not afterwards. My setting was one day. This explains the complete behaviour although I have to say that the error message given by cpan was a bit misleading. Instead of saying that the index file expired, it tells me that it is not available. Here a summary, because at the end it does not seem to be much to do. First get a cpan via minicpan. Then add your local path to the urllist and set index_expire to a high value. That should be everything. Update It was that easy. Setting the index_expire to a high value solved the problem. Thank you!!! | [reply] [d/l] [select] |