in reply to Re^2: CPAN::Mini on a diet
in thread CPAN::Mini on a diet

" but as soon as I run another minicpan to update the mirror, I got download those old versions (which is OK, since this is the expected behavior)."

For clarity, are you running minicpan -c CPAN::Mini::LatestDistVersion when updating to use the CPAN::Mini::LatestDistVersion class?

Replies are listed 'Best First'.
Re^4: CPAN::Mini on a diet
by glasswalk3r (Friar) on Mar 22, 2017 at 17:23 UTC

    Nope... just minicpan, still didn't have the time to test CPAN::Mini::LatestDistVersion yet.

    ASAP I'll do it and let you know.

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

      All right, did the test finally. Here is the short sequence:

      1. Update mirror with "standard" CPAN::Mini
      2. Clean up with my script
      3. Repeat, to be sure the count is zero.
      4. Install CPAN::Mini::LatestDistVersion.
      5. Sync with CPAN::Mini::LatestDistVersion.
      6. Run the cleanup script again.
      7. Sync again with CPAN::Mini::LatestDistVersion.

      Result: the cleanup script removed some files, but not as much as using minicpan only.

      And follows the long output of executing those steps:

      Alceu Rodrigues de Freitas Junior
      ---------------------------------
      "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill