[SCM] Debian packaging of dh-make-perl branch, master, updated. debian/0.74-1-34-g4296156

gregor herrmann gregoa at debian.org
Sat Dec 31 19:35:58 UTC 2011


The following commit has been merged in the master branch:
commit 4296156781f50c970283218c399b58b22e4245d7
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Dec 31 20:34:22 2011 +0100

    DhMakePerl::Command::Packaging: don't initialize CPAN if --no-network is set.
    
    Otherwise t/cache.t fails because CPAN tries to update its config and goes
    out hunting for CPAN mirrors.

diff --git a/lib/DhMakePerl/Command/Packaging.pm b/lib/DhMakePerl/Command/Packaging.pm
index f3145da..4816d5d 100644
--- a/lib/DhMakePerl/Command/Packaging.pm
+++ b/lib/DhMakePerl/Command/Packaging.pm
@@ -1311,7 +1311,8 @@ sub configure_cpan {
 
     return if $CPAN::Config_loaded;
 
-    CPAN::HandleConfig->load( be_silent => not $self->cfg->verbose );
+    CPAN::HandleConfig->load( be_silent => not $self->cfg->verbose )
+        if $self->cfg->network;
 
     unshift( @{ $CPAN::Config->{'urllist'} }, $self->cfg->cpan_mirror )
         if $self->cfg->cpan_mirror;

-- 
Debian packaging of dh-make-perl



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