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