summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-11-19 00:16:15 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-11-19 00:16:15 +0100
commit2a72280debd8410946caa521213092d051d3cf84 (patch)
tree69248fda54d0e00aa8d5c17ae277e22f3ee3b8c4
parent3b41062ecdd1389bed754f14309591da42fd642c (diff)
downloadApp-ArchLinux-PackagerTools-2a72280debd8410946caa521213092d051d3cf84.tar.gz
App-ArchLinux-PackagerTools-2a72280debd8410946caa521213092d051d3cf84.tar.xz
Add debug output to CPAN index generation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--lib/App/ArchLinux/PackagerTools/CPAN.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/App/ArchLinux/PackagerTools/CPAN.pm b/lib/App/ArchLinux/PackagerTools/CPAN.pm
index c2dcf4a..0bf201f 100644
--- a/lib/App/ArchLinux/PackagerTools/CPAN.pm
+++ b/lib/App/ArchLinux/PackagerTools/CPAN.pm
@@ -134,9 +134,11 @@ Set up the internal index of CPAN distributions
=cut
method _build_dist_index() {
+ $log->debug("Updating CPANPLUS index. This may take a while");
$self->{deps}->{cpanplus_backend}->reload_indices();
# TODO download pacakges list ourselves instead of using cpanplus for it? We may need cpanplus for other features later so keeping it is probably also fine.
+ $log->debug("Building index...");
my $packages_file = "$ENV{HOME}/.cpanplus/02packages.details.txt.gz";
my $fh = IO::Zlib->new($packages_file, 'r');
my %seen;