Hello community,

here is the log from the commit of package perl-Module-CPANfile for 
openSUSE:Factory checked in at 2016-02-17 10:25:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-CPANfile (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Module-CPANfile.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Module-CPANfile"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Module-CPANfile/perl-Module-CPANfile.changes    
    2015-09-11 09:04:46.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Module-CPANfile.new/perl-Module-CPANfile.changes
   2016-02-17 12:20:08.000000000 +0100
@@ -1,0 +2,9 @@
+Sat Feb 13 10:17:59 UTC 2016 - [email protected]
+
+- updated to 1.1002
+   see /usr/share/doc/packages/perl-Module-CPANfile/Changes
+
+  1.1002  2016-02-12 08:23:00 PST
+          - Make it work under the taint mode (-T) #41
+
+-------------------------------------------------------------------

Old:
----
  Module-CPANfile-1.1001.tar.gz

New:
----
  Module-CPANfile-1.1002.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Module-CPANfile.spec ++++++
--- /var/tmp/diff_new_pack.dm0HJU/_old  2016-02-17 12:20:09.000000000 +0100
+++ /var/tmp/diff_new_pack.dm0HJU/_new  2016-02-17 12:20:09.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Module-CPANfile
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Module-CPANfile
-Version:        1.1001
+Version:        1.1002
 Release:        0
 %define cpan_name Module-CPANfile
 Summary:        Parse cpanfile
@@ -32,20 +32,22 @@
 BuildRequires:  perl-macros
 BuildRequires:  perl(CPAN::Meta) >= 2.12091
 BuildRequires:  perl(CPAN::Meta::Prereqs) >= 2.12091
+BuildRequires:  perl(JSON::PP) >= 2.27300
 BuildRequires:  perl(Test::More) >= 0.88
 BuildRequires:  perl(parent)
 Requires:       perl(CPAN::Meta) >= 2.12091
 Requires:       perl(CPAN::Meta::Prereqs) >= 2.12091
+Requires:       perl(JSON::PP) >= 2.27300
 Requires:       perl(parent)
 %{perl_requires}
 
 %description
-Module::CPANfile is a tool to handle the cpanfile manpage format to load
-application specific dependencies, not just for CPAN distributions.
+Module::CPANfile is a tool to handle cpanfile format to load application
+specific dependencies, not just for CPAN distributions.
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f -print0 | xargs -0 chmod 644
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor

++++++ Module-CPANfile-1.1001.tar.gz -> Module-CPANfile-1.1002.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/Changes 
new/Module-CPANfile-1.1002/Changes
--- old/Module-CPANfile-1.1001/Changes  2015-09-04 14:07:17.000000000 +0200
+++ new/Module-CPANfile-1.1002/Changes  2016-02-12 17:23:03.000000000 +0100
@@ -1,5 +1,8 @@
 Revision history for Module::Install::CPANfile
 
+1.1002  2016-02-12 08:23:00 PST
+        - Make it work under the taint mode (-T) #41
+
 1.1001  2015-09-04 14:07:14 CEST
         - Fixed tests to avoid using subtests. #38
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/LICENSE 
new/Module-CPANfile-1.1002/LICENSE
--- old/Module-CPANfile-1.1001/LICENSE  2015-09-04 14:07:17.000000000 +0200
+++ new/Module-CPANfile-1.1002/LICENSE  2016-02-12 17:23:03.000000000 +0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2015 by Tatsuhiko Miyagawa.
+This software is copyright (c) 2016 by Tatsuhiko Miyagawa.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2015 by Tatsuhiko Miyagawa.
+This software is Copyright (c) 2016 by Tatsuhiko Miyagawa.
 
 This is free software, licensed under:
 
@@ -272,7 +272,7 @@
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2015 by Tatsuhiko Miyagawa.
+This software is Copyright (c) 2016 by Tatsuhiko Miyagawa.
 
 This is free software, licensed under:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/MANIFEST 
new/Module-CPANfile-1.1002/MANIFEST
--- old/Module-CPANfile-1.1001/MANIFEST 2015-09-04 14:07:17.000000000 +0200
+++ new/Module-CPANfile-1.1002/MANIFEST 2016-02-12 17:23:03.000000000 +0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v5.039.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v5.043.
 Changes
 LICENSE
 MANIFEST
@@ -18,10 +18,10 @@
 script/cpanfile-dump
 script/mymeta-cpanfile
 t/Utils.pm
+t/author-pod-syntax.t
 t/feature.t
 t/from_prereqs.t
 t/merge.t
 t/mirror.t
 t/parse.t
-t/release-pod-syntax.t
 t/requirement.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/META.json 
new/Module-CPANfile-1.1002/META.json
--- old/Module-CPANfile-1.1001/META.json        2015-09-04 14:07:17.000000000 
+0200
+++ new/Module-CPANfile-1.1002/META.json        2016-02-12 17:23:03.000000000 
+0100
@@ -4,7 +4,7 @@
       "Tatsuhiko Miyagawa"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 5.039, Dist::Milla version v1.0.15, 
CPAN::Meta::Converter version 2.150005",
+   "generated_by" : "Dist::Zilla version 5.043, Dist::Milla version v1.0.15, 
CPAN::Meta::Converter version 2.150005",
    "license" : [
       "perl_5"
    ],
@@ -15,12 +15,12 @@
    "name" : "Module-CPANfile",
    "no_index" : {
       "directory" : [
-         "t",
-         "xt",
+         "eg",
+         "examples",
          "inc",
          "share",
-         "eg",
-         "examples"
+         "t",
+         "xt"
       ]
    },
    "prereqs" : {
@@ -42,6 +42,7 @@
          "requires" : {
             "CPAN::Meta" : "2.12091",
             "CPAN::Meta::Prereqs" : "2.12091",
+            "JSON::PP" : "2.27300",
             "parent" : "0"
          }
       },
@@ -63,17 +64,19 @@
          "web" : "https://github.com/miyagawa/cpanfile";
       }
    },
-   "version" : "1.1001",
+   "version" : "1.1002",
    "x_contributors" : [
       "Atsushi Kato <[email protected]>",
       "David Golden <[email protected]>",
       "David Steinbrunner <[email protected]>",
+      "Dylan William Hardison <[email protected]>",
       "Gregory Oschwald <[email protected]>",
       "grtodd <[email protected]>",
       "ikasam_a <[email protected]>",
       "Kenichi Ishigaki <[email protected]>",
       "Masahiro Honma <[email protected]>",
       "Michiel Beijen <[email protected]>",
+      "Olivier MenguĂ© <[email protected]>",
       "Tatsuhiko Miyagawa <[email protected]>"
    ]
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/META.yml 
new/Module-CPANfile-1.1002/META.yml
--- old/Module-CPANfile-1.1001/META.yml 2015-09-04 14:07:17.000000000 +0200
+++ new/Module-CPANfile-1.1002/META.yml 2016-02-12 17:23:03.000000000 +0100
@@ -7,7 +7,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.039, Dist::Milla version v1.0.15, 
CPAN::Meta::Converter version 2.150005'
+generated_by: 'Dist::Zilla version 5.043, Dist::Milla version v1.0.15, 
CPAN::Meta::Converter version 2.150005'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -15,31 +15,34 @@
 name: Module-CPANfile
 no_index:
   directory:
-    - t
-    - xt
-    - inc
-    - share
     - eg
     - examples
+    - inc
+    - share
+    - t
+    - xt
 recommends:
   Pod::Usage: '0'
 requires:
   CPAN::Meta: '2.12091'
   CPAN::Meta::Prereqs: '2.12091'
+  JSON::PP: '2.27300'
   parent: '0'
 resources:
   bugtracker: https://github.com/miyagawa/cpanfile/issues
   homepage: https://github.com/miyagawa/cpanfile
   repository: https://github.com/miyagawa/cpanfile.git
-version: '1.1001'
+version: '1.1002'
 x_contributors:
   - 'Atsushi Kato <[email protected]>'
   - 'David Golden <[email protected]>'
   - 'David Steinbrunner <[email protected]>'
+  - 'Dylan William Hardison <[email protected]>'
   - 'Gregory Oschwald <[email protected]>'
   - 'grtodd <[email protected]>'
   - 'ikasam_a <[email protected]>'
   - 'Kenichi Ishigaki <[email protected]>'
   - 'Masahiro Honma <[email protected]>'
   - 'Michiel Beijen <[email protected]>'
+  - 'Olivier MenguĂ© <[email protected]>'
   - 'Tatsuhiko Miyagawa <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/Makefile.PL 
new/Module-CPANfile-1.1002/Makefile.PL
--- old/Module-CPANfile-1.1001/Makefile.PL      2015-09-04 14:07:17.000000000 
+0200
+++ new/Module-CPANfile-1.1002/Makefile.PL      2016-02-12 17:23:03.000000000 
+0100
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v5.039.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v5.043.
 use strict;
 use warnings;
 
@@ -22,12 +22,13 @@
   "PREREQ_PM" => {
     "CPAN::Meta" => "2.12091",
     "CPAN::Meta::Prereqs" => "2.12091",
+    "JSON::PP" => "2.27300",
     "parent" => 0
   },
   "TEST_REQUIRES" => {
     "Test::More" => "0.88"
   },
-  "VERSION" => "1.1001",
+  "VERSION" => "1.1002",
   "test" => {
     "TESTS" => "t/*.t"
   }
@@ -37,6 +38,7 @@
 my %FallbackPrereqs = (
   "CPAN::Meta" => "2.12091",
   "CPAN::Meta::Prereqs" => "2.12091",
+  "JSON::PP" => "2.27300",
   "Test::More" => "0.88",
   "parent" => 0
 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/lib/Module/CPANfile.pm 
new/Module-CPANfile-1.1002/lib/Module/CPANfile.pm
--- old/Module-CPANfile-1.1001/lib/Module/CPANfile.pm   2015-09-04 
14:07:17.000000000 +0200
+++ new/Module-CPANfile-1.1002/lib/Module/CPANfile.pm   2016-02-12 
17:23:03.000000000 +0100
@@ -6,7 +6,19 @@
 use Module::CPANfile::Environment;
 use Module::CPANfile::Requirement;
 
-our $VERSION = '1.1001';
+our $VERSION = '1.1002';
+
+BEGIN {
+    if (${^TAINT}) {
+        *untaint = sub {
+            my $str = shift;
+            ($str) = $str =~ /^(.+)$/s;
+            $str;
+        };
+    } else {
+        *untaint = sub { $_[0] };
+    }
+}
 
 sub new {
     my($class, $file) = @_;
@@ -17,7 +29,7 @@
     my($proto, $file) = @_;
 
     my $self = ref $proto ? $proto : $proto->new;
-    $self->parse($file || Cwd::abs_path('cpanfile'));
+    $self->parse($file || _default_cpanfile());
     $self;
 }
 
@@ -36,6 +48,8 @@
         join '', <$fh>;
     };
 
+    $code = untaint $code;
+
     my $env = Module::CPANfile::Environment->new($file);
     $env->parse($code) or die $@;
 
@@ -132,6 +146,11 @@
     $value;
 }
 
+sub _default_cpanfile {
+    my $file = Cwd::abs_path('cpanfile');
+    untaint $file;
+}
+
 sub to_string {
     my($self, $include_empty) = @_;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/lib/cpanfile.pod 
new/Module-CPANfile-1.1002/lib/cpanfile.pod
--- old/Module-CPANfile-1.1001/lib/cpanfile.pod 2015-09-04 14:07:17.000000000 
+0200
+++ new/Module-CPANfile-1.1002/lib/cpanfile.pod 2016-02-12 17:23:03.000000000 
+0100
@@ -108,6 +108,8 @@
 L<Module::Install::CPANfile>, so that C<cpanfile> can be used to
 describe dependencies for a CPAN distribution as well.
 
+The L<cpanfile-dump> tool can be used to dump dependencies.
+
 =head1 AUTHOR
 
 Tatsuhiko Miyagawa
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/t/author-pod-syntax.t 
new/Module-CPANfile-1.1002/t/author-pod-syntax.t
--- old/Module-CPANfile-1.1001/t/author-pod-syntax.t    1970-01-01 
01:00:00.000000000 +0100
+++ new/Module-CPANfile-1.1002/t/author-pod-syntax.t    2016-02-12 
17:23:03.000000000 +0100
@@ -0,0 +1,15 @@
+#!perl
+
+BEGIN {
+  unless ($ENV{AUTHOR_TESTING}) {
+    require Test::More;
+    Test::More::plan(skip_all => 'these tests are for testing by the author');
+  }
+}
+
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
+use strict; use warnings;
+use Test::More;
+use Test::Pod 1.41;
+
+all_pod_files_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-CPANfile-1.1001/t/release-pod-syntax.t 
new/Module-CPANfile-1.1002/t/release-pod-syntax.t
--- old/Module-CPANfile-1.1001/t/release-pod-syntax.t   2015-09-04 
14:07:17.000000000 +0200
+++ new/Module-CPANfile-1.1002/t/release-pod-syntax.t   1970-01-01 
01:00:00.000000000 +0100
@@ -1,14 +0,0 @@
-#!perl
-
-BEGIN {
-  unless ($ENV{RELEASE_TESTING}) {
-    require Test::More;
-    Test::More::plan(skip_all => 'these tests are for release candidate 
testing');
-  }
-}
-
-# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
-use Test::More;
-use Test::Pod 1.41;
-
-all_pod_files_ok();


Reply via email to