[libdatetime-timezone-perl] 01/09: Another attempt to fix metacpan indexing of Catalog

gregor herrmann gregoa at debian.org
Wed Apr 15 19:03:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to annotated tag v1.83
in repository libdatetime-timezone-perl.

commit 6751992d30bc27051afb112da5756c7d800d5497
Author: Dave Rolsky <autarch at urth.org>
Date:   Wed Dec 24 13:34:27 2014 -0600

    Another attempt to fix metacpan indexing of Catalog
---
 Changes           | 4 ++++
 tools/parse_olson | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Changes b/Changes
index 22eadf9..5c1d5e7 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 {{$NEXT}}
 
+- Attempting to fix indexing of DateTime::TimeZone::Catalog on metacpan. No
+  real code or zone changes.
+
+
 1.82    2014-12-24
 
 - Various changes to get tests passing and tools code working with blead. This
diff --git a/tools/parse_olson b/tools/parse_olson
index c2aa122..af1ff0d 100755
--- a/tools/parse_olson
+++ b/tools/parse_olson
@@ -203,7 +203,7 @@ sub parse_file {
             if defined $opts{version};
 
         # Helps avoid mis indexing on (meta)cpan
-        my $pkg_keyword = 'package';
+        my $pkg = 'package DateTime::TimeZone::' .$mod_name;
 
         my $body = <<"EOF";
 $autogen_warning
@@ -212,7 +212,7 @@ $autogen_warning
 #
 # Do not edit this file directly.
 #
-$pkg_keyword DateTime::TimeZone::$mod_name;
+$pkg;
 
 use strict;
 
@@ -483,14 +483,14 @@ sub make_catalog_pm {
     }
 
     # Helps avoid mis indexing on (meta)cpan
-    my $pkg_keyword = 'package';
+    my $pkg = 'package' . ' DateTime::TimeZone::Catalog';
 
     my $zonecatalog = <<"EOF";
 $autogen_warning
 #
 # Do not edit this file directly.
 
-$pkg_keyword DateTime::TimeZone::Catalog;
+$pkg;
 
 use strict;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdatetime-timezone-perl.git



More information about the Pkg-perl-cvs-commits mailing list