[libdist-zilla-plugin-githubmeta-perl] 01/03: Lazy load IPC::Cmd

Axel Beckert abe at deuxchevaux.org
Sun Apr 26 22:25:52 UTC 2015


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

abe pushed a commit to annotated tag 0.30
in repository libdist-zilla-plugin-githubmeta-perl.

commit 96bfad240045ff88e9b79e6233cdda1c418b8b4f
Author: Olivier Mengué <dolmen at cpan.org>
Date:   Wed Jul 17 23:47:30 2013 +0200

    Lazy load IPC::Cmd
---
 lib/Dist/Zilla/Plugin/GithubMeta.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/Dist/Zilla/Plugin/GithubMeta.pm b/lib/Dist/Zilla/Plugin/GithubMeta.pm
index 6ccf9ed..4afde71 100644
--- a/lib/Dist/Zilla/Plugin/GithubMeta.pm
+++ b/lib/Dist/Zilla/Plugin/GithubMeta.pm
@@ -9,7 +9,6 @@ with 'Dist::Zilla::Role::MetaProvider';
 
 use MooseX::Types::URI qw[Uri];
 use Cwd;
-use IPC::Cmd qw[can_run];
 
 use namespace::autoclean;
 
@@ -51,7 +50,9 @@ sub _acquire_repo_info {
   return if $self->_has_user and $self->_has_repo;
 
   return unless _under_git();
-  return unless can_run('git');
+
+  require IPC::Cmd;
+  return unless IPC::Cmd::can_run('git');
 
   my $git_url;
   remotelist: for my $remote (@{ $self->remote }) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-githubmeta-perl.git



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