Blame SOURCES/CPANPLUS-0.9142-RT-91273-Useless-downloading-03modlist.data.gz.patch

6656f9
From 68f75c070e1c77a63164a8d127ea775d0ddb62dc Mon Sep 17 00:00:00 2001
6656f9
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
6656f9
Date: Mon, 9 Dec 2013 19:52:01 +0000
6656f9
Subject: [PATCH] [RT#91273] Useless downloading 03modlist.data.gz
6656f9
MIME-Version: 1.0
6656f9
Content-Type: text/plain; charset=UTF-8
6656f9
Content-Transfer-Encoding: 8bit
6656f9
6656f9
Since 0.9136, dslip source 03modlist.data.gz is not parsed, so it's pointless to download it:
6656f9
6656f9
sub __create_dslip_tree {
6656f9
    my $self = shift;
6656f9
    my %hash = @_;
6656f9
    my $conf = $self->configure_object;
6656f9
6656f9
    return {}; # Quick hack
6656f9
    [...]
6656f9
}
6656f9
6656f9
Attached patch disables downloading 03modlist.data.gz.
6656f9
6656f9
Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
6656f9
Signed-off-by: Petr Písař <ppisar@redhat.com>
6656f9
---
6656f9
 lib/CPANPLUS/Internals/Source.pm | 2 +-
6656f9
 t/03_CPANPLUS-Internals-Source.t | 2 +-
6656f9
 2 files changed, 2 insertions(+), 2 deletions(-)
6656f9
6656f9
diff --git a/lib/CPANPLUS/Internals/Source.pm b/lib/CPANPLUS/Internals/Source.pm
6656f9
index f43dca5..05b9394 100644
6656f9
--- a/lib/CPANPLUS/Internals/Source.pm
6656f9
+++ b/lib/CPANPLUS/Internals/Source.pm
6656f9
@@ -307,7 +307,7 @@ sub _check_trees {
6656f9
 
6656f9
     my $uptodate = 1; # default return value
6656f9
 
6656f9
-    for my $name (qw[auth dslip mod]) {
6656f9
+    for my $name (qw[auth mod]) {
6656f9
         for my $file ( $conf->_get_source( $name ) ) {
6656f9
             $self->__check_uptodate(
6656f9
                 file            => File::Spec->catfile( $path, $file ),
6656f9
diff --git a/t/03_CPANPLUS-Internals-Source.t b/t/03_CPANPLUS-Internals-Source.t
6656f9
index d6ad2ea..1acc48d 100644
6656f9
--- a/t/03_CPANPLUS-Internals-Source.t
6656f9
+++ b/t/03_CPANPLUS-Internals-Source.t
6656f9
@@ -35,7 +35,7 @@ my $modname = TEST_CONF_MODULE;
6656f9
     my $at      = $cb->_author_tree;
6656f9
 
6656f9
     ### source files should be copied from the 'server' now
6656f9
-    for my $name (qw[auth mod dslip] ) {
6656f9
+    for my $name (qw[auth mod] ) {
6656f9
         my $file = File::Spec->catfile(
6656f9
                             $conf->get_conf('base'),
6656f9
                             $conf->_get_source($name)
6656f9
-- 
6656f9
1.8.3.1
6656f9