Andrew Hampe wrote:
The Basic CPAN concern: --bail_on_fail flag (2008.02.10 )

Problem description:
    when a cpan session is looking for more than one distribution/module
    there needs to be a way to 'flag' that the session must fail and stop
if there is an error loading any distribution, or a sub component required module.

To be clear, you mean like if you put in:

   $ cpan Foo::Bar Bar::Baz

and Foo::Bar fails to install you want it to stop and not continue on to 
Bar::Baz?


Is there anyone working on such a flag?

Would a Patch Be Acceptable?

I believe you want to send this along to the CPAN bug tracker. perl-qa is for quality assurance (testing) issues.
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CPAN

But it's trivial to do yourself.

        use CPAN;

        for my $name (@ARGV) {
                my $mod = CPAN::Shell->expand("Module", $name);

                unless( $mod ) {
                        warn "Unknown module $name.  Aborting.\n";
                        last;
                }

                next if $mod->uptodate;              # already up to date

                unless( CPAN::Shell->install($mod) ) {
                        warn "Installing $name failed.  Aborting.\n";
                        last;
                }
        }


--
101. I am not allowed to mount a bayonet on a crew-served weapon.
    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
           http://skippyslist.com/list/

Reply via email to