Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I noticed today though that CPAN.pm is still going to my previous first choice repository to download and compare checksums.

    Are you sure you have the latest version [stonehenge.com]? There's code specifically in there to download the CHECKSUMS file to prevent exactly such an action:

        if ($path =~ m{^authors/id}) { # maybe fetch CHECKSUMS
          my $checksum_path =
            URI->new_abs("CHECKSUMS", $remote_uri)->rel($REMOTE);
          if ($path ne $checksum

    --
    • Randal L. Schwartz
    • Stonehenge
  • I just noticed that the Perlmonks [perlmonks.org] version is the buggy preliminary version. Please use the final version [stonehenge.com] instead.
    --
    • Randal L. Schwartz
    • Stonehenge
    • Thank you! Turns out my solution didn't work, anyway. It went downloaded all the CHECKSUMS files ... then deleted them!

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • It went downloaded all the CHECKSUMS files ... then deleted them!

        Heh! That's exactly what the very next version did for me.

        At least you were on the right track. Another 42 minutes or so, and you'd have ended up with my final version.

        The key was not running mirror needlessly. I ended up with a multi-stage algorithm, described in the accompanying text. The result is that I don't try to mirror any CHECKSUMS for which I already have a local version and none of its associated files have been updated

        --
        • Randal L. Schwartz
        • Stonehenge