CPAN mirroring problem in cpan::mini

Posted by user304122 on Stack Overflow See other posts from Stack Overflow or by user304122
Published on 2010-03-29T11:06:54Z Indexed on 2010/03/29 11:43 UTC
Read the original article Hit count: 547

Filed under:
|

I am on a corporate PC that forces mcshield on everything that moves.
I get blocked when trying to mirror on :-
. . . . . .
authors/id/J/JV/JV/EekBoek-2.00.01.tar.gz ... updated
authors/id/J/JV/JV/CHECKSUMS ... updated
Could not stat tmpfile '/cygdrive/t/cpan_mirror/authors/id/J/JW/JWIED/Mail-IspMailGate-1.1013.tar.gz-4712': No such file or directory at /usr/lib/perl5/site_perl/5.10/LWP/UserAgent.pm line 851.
authors/id/J/JW/JWIED/Mail-IspMailGate-1.1013.tar.gz

At this point, I get the Virus scanner mcshield sticking its Awr in.

To maintain my mirror I execute:-

 #!/usr/bin/perl
CPAN::Mini->update_mirror(
   remote => "http://mirror.eunet.fi/CPAN",
   local  => "/cygdrive/t/cpan_mirror/",
   trace  => 1,
   errors  => 1,
   module_filters => [ qr/kjkjhkjhkjkj/i,
                       qr/clamav/i,
                       qr/ispmailgate/i,
                       qr/IspMailGate/,
                       qr/Mail-IspMailGate/,
                       qr/mail-ispmailgate/i,
                     ],
   path_filters => [ qr/ZZYYZZ/,
                    #qr/WIED/,
                    #qr/RJBS/,
                   ]
);


It skips OK if I enable the path_filter WIED.
Just cannot get it to skip the module failing module to complete other WIED modules.

Any ideas ??

.

© Stack Overflow or respective owner

Related posts about perl

Related posts about cpan