39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From f7fc39436aa91c783142fef58853abdb30a5d2bc Mon Sep 17 00:00:00 2001
|
|
From: Simon Legner <Simon.Legner@gmail.com>
|
|
Date: Tue, 11 Oct 2016 12:47:56 +0200
|
|
Subject: [PATCH] $logger->die does not exist
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
---
|
|
lib/App/Cpan.pm | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/App/Cpan.pm b/lib/App/Cpan.pm
|
|
index c654c2c..742cbd2 100644
|
|
--- a/lib/App/Cpan.pm
|
|
+++ b/lib/App/Cpan.pm
|
|
@@ -1033,7 +1033,7 @@ sub _load_local_lib # -I
|
|
|
|
my $rc = _safe_load_module("local::lib");
|
|
unless( $rc ) {
|
|
- $logger->die( "Could not load local::lib" );
|
|
+ $logger->logdie( "Could not load local::lib" );
|
|
}
|
|
|
|
local::lib->import;
|
|
@@ -1045,7 +1045,7 @@ sub _use_these_mirrors # -M
|
|
{
|
|
$logger->debug( "Setting per session mirrors" );
|
|
unless( $_[0] ) {
|
|
- $logger->die( "The -M switch requires a comma-separated list of mirrors" );
|
|
+ $logger->logdie( "The -M switch requires a comma-separated list of mirrors" );
|
|
}
|
|
|
|
$CPAN::Config->{urllist} = [ split /,/, $_[0] ];
|
|
--
|
|
2.7.4
|
|
|