line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CPAN::Access::AdHoc::Default::CPAN::CPAN::Mini; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
5423
|
use 5.008; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
180
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
33
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
118
|
|
6
|
4
|
|
|
4
|
|
52
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
197
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
27
|
use CPAN::Access::AdHoc::Util qw{ __load }; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
319
|
|
9
|
4
|
|
|
4
|
|
24
|
use Cwd (); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
63
|
|
10
|
4
|
|
|
4
|
|
25
|
use URI::file; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
704
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = '0.000_18'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $configured = eval { |
15
|
|
|
|
|
|
|
__load( 'CPAN::Mini' ); |
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub get_default { |
20
|
4
|
|
|
4
|
1
|
11
|
my ( $class ) = @_; |
21
|
|
|
|
|
|
|
|
22
|
4
|
50
|
|
|
|
16
|
$configured |
23
|
|
|
|
|
|
|
or return; |
24
|
|
|
|
|
|
|
|
25
|
4
|
50
|
|
|
|
38
|
my %config = CPAN::Mini->read_config( {} ) |
26
|
|
|
|
|
|
|
or return; |
27
|
4
|
50
|
|
|
|
25
|
defined( my $local = $config{local} ) |
28
|
|
|
|
|
|
|
or return; |
29
|
4
|
|
|
|
|
276
|
$local = Cwd::abs_path( $local ); |
30
|
4
|
50
|
|
|
|
92
|
-d $local |
31
|
|
|
|
|
|
|
or return; |
32
|
4
|
|
|
|
|
48
|
my $uri = URI::file->new_abs( $local ); |
33
|
4
|
|
|
|
|
10543
|
return $uri; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |