[libmoosex-has-sugar-perl] 31/120: Don't call cpanm without deps to pull

Intrigeri intrigeri at moszumanska.debian.org
Wed Aug 27 21:35:08 UTC 2014


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

intrigeri pushed a commit to annotated tag 0.05070422-source
in repository libmoosex-has-sugar-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/libmoosex-has-sugar-perl.git



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