Carmel

 view release on metacpan or  search on metacpan

lib/Carmel/Builder.pm  view on Meta::CPAN

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    @cmd = ("--cpanfile", $path, "--installdeps", ".");
} else {
    @cmd = @args;
}
 
if ($self->snapshot) {
    my $path = Path::Tiny->tempfile;
    $self->snapshot->write_index($path);
    unshift @cmd,
      "--mirror-index", $path,
      "--cascade-search",
      "--mirror", "http://cpan.metacpan.org";
}
 
local $ENV{PERL_CPANM_HOME} = $self->tempdir;
local $ENV{PERL_CPANM_OPT};
 
my $cpanfile = $self->cpanfile_path
  or die "Can't locate 'cpanfile' to load module list.\n";
 
# one mirror for now



( run in 0.294 second using v1.01-cache-2.11-cpan-26ccb49234f )