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 ecddf3559c16b47542d3981a22ea4997ba49a50e
Author: Kent Fredric <kentfred...@gmail.com>
Date:   Tue Oct 29 21:23:12 2013 +1300

    Abstract out fix logic, and drop need for Git bundle fix, as upstream have 
fixed it
---
 install_deps.pl | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/install_deps.pl b/install_deps.pl
index d4fcd3b..7aa6b0b 100644
--- a/install_deps.pl
+++ b/install_deps.pl
@@ -47,6 +47,26 @@ sub cpanm {
   return 1;
 }
 
+my $got_fixes;
+
+sub get_fixes {
+  return if $got_fixes;
+  my $cwd = cwd();
+  chdir '/tmp';
+  safe_exec( 'git', 'clone', 'https://github.com/kentfredric/cpan-fixes.git' );
+  chdir $cwd;
+  $got_fixes = 1;
+}
+
+sub cpanm_fix {
+  my (@params) = @_;
+  get_fixes();
+  my $cwd = cwd();
+  chdir '/tmp/cpan-fixes';
+  cpanm(@params);
+  chdir $cwd;
+}
+
 if ( not env_exists('TRAVIS') ) {
   diag('Is not running under travis!');
   exit 1;
@@ -61,15 +81,7 @@ if ( env_is( 'TRAVIS_BRANCH', 'master' ) ) {
   cpanm( @params, '--dev',       'Dist::Zilla',   'Pod::Weaver' );
   safe_exec( 'git', 'config', '--global', 'user.email', 
'kentfredric+travi...@gmail.com' );
   safe_exec( 'git', 'config', '--global', 'user.name',  'Travis CI ( On behalf 
of Kent Fredric )' );
-  mkdir '/tmp';
-  my $cwd = cwd();
-  chdir '/tmp';
-  safe_exec( 'git', 'clone', 'https://github.com/kentfredric/cpan-fixes.git' );
-  chdir '/tmp/cpan-fixes';
-  cpanm( @params, './Dist-Zilla-Plugin-Git-2.017.tar.gz' );
 
-  #cpanm( @params, './Dist-Zilla-Plugin-Prepender-1.132960.tar.gz' );
-  chdir $cwd;
   require Capture::Tiny;
   my $stdout = Capture::Tiny::capture_stdout(
     sub {

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to