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