[libcatmandu-perl] 27/46: don't check fixes with newlines as executables

Jonas Smedegaard dr at jones.dk
Tue Oct 14 13:52:53 UTC 2014


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

js pushed a commit to tag 0.9205
in repository libcatmandu-perl.

commit d9a18c3592c6c6a346e41a16cc6f6c43559d2c93
Author: Jakob Voss <voss at gbv.de>
Date:   Thu Sep 25 08:48:50 2014 +0200

    don't check fixes with newlines as executables
---
 lib/Catmandu/Fix.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Catmandu/Fix.pm b/lib/Catmandu/Fix.pm
index 2e3f487..9b23421 100644
--- a/lib/Catmandu/Fix.pm
+++ b/lib/Catmandu/Fix.pm
@@ -41,7 +41,7 @@ sub _trigger_fixes {
     for my $fix (@$fixes) {
         if (ref $fix) {
             push @$parsed_fixes, $fix;
-        } elsif(-X $fix) {
+        } elsif($fix !~ /\n/ and -X $fix) {
             push @$parsed_fixes, require_package('Catmandu::Fix::cmd')->new($fix);
         } else {
             push @$parsed_fixes, @{$self->parser->parse($fix)};

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



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