[libdist-zilla-role-bootstrap-perl] 16/101: Don't call cpanm without deps to pull
    Axel Beckert 
    abe at deuxchevaux.org
       
    Sat Aug  8 11:58:31 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to annotated tag 0.2.2-source
in repository libdist-zilla-role-bootstrap-perl.
commit 0dd6559df1aa22566237f5738496bf2b3ba0d0f1
Author: Kent Fredric <kentfredric at gmail.com>
Date:   Thu Oct 24 05:48:18 2013 +1300
    Don't call cpanm without deps to pull
---
 install_deps.pl | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/install_deps.pl b/install_deps.pl
index 5211575..3ad5e03 100644
--- a/install_deps.pl
+++ b/install_deps.pl
@@ -43,13 +43,17 @@ if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) {
       safe_exec( 'dzil', 'authordeps', '--missing' );
     }
   );
-  safe_exec( 'cpanm', @params, split /\n/, $stdout );
+  if ( $stdout !~ /^\s*$/msx ) {
+    safe_exec( 'cpanm', @params, split /\n/, $stdout );
+  }
   $stdout = Capture::Tiny::capture_stdout(
     sub {
       safe_exec( 'dzil', 'listdeps', '--missing' );
     }
   );
-  safe_exec( 'cpanm', @params, split /\n/, $stdout );
+  if ( $stdout !~ /^\s*$/msx ) {
+    safe_exec( 'cpanm', @params, split /\n/, $stdout );
+  }
 }
 else {
   safe_exec( 'cpanm', @params, '--installdeps', '.' );
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-role-bootstrap-perl.git
    
    
More information about the Pkg-perl-cvs-commits
mailing list