Skip to content
Browse files

Give a hard failure when configure failed for --installdeps. Fixes #111

  • Loading branch information...
1 parent fff4d1b commit c4b880cb53112f9d0ff8c79962b0901aab0d6026 @miyagawa miyagawa committed Oct 12, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/App/cpanminus/script.pm
View
9 lib/App/cpanminus/script.pm
@@ -1239,8 +1239,13 @@ DIAG
}
if ($self->{installdeps} && $depth == 0) {
- $self->diag("<== Installed dependencies for $stuff. Finishing.\n");
- return 1;
+ if ($configure_state->{configured_ok}) {
+ $self->diag("<== Installed dependencies for $stuff. Finishing.\n");
+ return 1;
+ } else {
+ $self->diag("! Configuring $distname failed. See $self->{log} for details.\n", 1);
+ return;
+ }
}
my $installed;

0 comments on commit c4b880c

Please sign in to comment.
Something went wrong with that request. Please try again.