418dc8
From a40f2774eede8e65dd6128b45525ec88f469e031 Mon Sep 17 00:00:00 2001
418dc8
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
418dc8
Date: Fri, 10 Jul 2015 13:02:00 +0200
418dc8
Subject: [PATCH 2/2] Do not create Net/libnet.cfg
418dc8
MIME-Version: 1.0
418dc8
Content-Type: text/plain; charset=UTF-8
418dc8
Content-Transfer-Encoding: 8bit
418dc8
418dc8
I will remove the Net/libnet.cfg because:
418dc8
418dc8
(1) it's content equals to default configuration hard-coded in the
418dc8
code
418dc8
(2) it's kind of configuration file we do not mark it as a configuration
418dc8
file, so it's overwritten on each update
418dc8
(3) it's loaded from directory based on Net::Config module location.
418dc8
I.e. core module will search it in core path, vendor module in vendor
418dc8
path and site module in site path.
418dc8
418dc8
perl.spec does not provide it either.
418dc8
418dc8
<https://bugzilla.redhat.com/show_bug.cgi?id=1238689>
418dc8
418dc8
Signed-off-by: Petr Písař <ppisar@redhat.com>
418dc8
---
418dc8
 Makefile.PL | 2 +-
418dc8
 1 file changed, 1 insertion(+), 1 deletion(-)
418dc8
418dc8
diff --git a/Makefile.PL b/Makefile.PL
418dc8
index 64d6959..25fc626 100644
418dc8
--- a/Makefile.PL
418dc8
+++ b/Makefile.PL
418dc8
@@ -235,7 +235,7 @@ MAIN: {
418dc8
 sub MY::post_initialize {
418dc8
     my $self = shift;
418dc8
 
418dc8
-    return '' if $self->{PERL_CORE};
418dc8
+    return '';
418dc8
 
418dc8
     if (not -f $CfgFile) {
418dc8
         my @args = qw(Configure);
418dc8
-- 
418dc8
2.5.0
418dc8