Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: CPAN::Mini on a diet

by glasswalk3r (Friar)
on Mar 22, 2017 at 14:19 UTC ( [id://1185452]=note: print w/replies, xml ) Need Help??


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

Thanks for the tips, I'll take a look specially at CPAN::Mini::LatestDistVersion. I used my script for cleanup, 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).

Maybe CPAN::Mini should include the features of CPAN::Mini::LatestDistVersion as well.

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

Replies are listed 'Best First'.
Re^3: CPAN::Mini on a diet
by marto (Cardinal) on Mar 22, 2017 at 14:23 UTC

    " 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?

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1185452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found