line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Build::Pluggable::Util; |
2
|
7
|
|
|
7
|
|
39
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
235
|
|
3
|
7
|
|
|
7
|
|
37
|
use warnings; |
|
7
|
|
|
|
|
22
|
|
|
7
|
|
|
|
|
568
|
|
4
|
7
|
|
|
7
|
|
41
|
use utf8; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
65
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub add_prereqs { |
8
|
15
|
|
|
15
|
0
|
177
|
my ( $class, $builder, $type, $module, $version ) = @_; |
9
|
15
|
|
|
|
|
54
|
my $p = $builder->{properties}; |
10
|
15
|
100
|
|
|
|
112
|
$version = 0 unless defined $version; |
11
|
15
|
50
|
|
|
|
111
|
if ( exists $p->{$type}{$module} ) { |
12
|
|
|
|
|
|
|
return |
13
|
0
|
0
|
|
|
|
0
|
if $builder->compare_versions( $version, '<=', $p->{$type}{$module} ); |
14
|
|
|
|
|
|
|
} |
15
|
15
|
|
|
|
|
222
|
$builder->log_verbose("Adding to $type\: $module => $version\n"); |
16
|
15
|
|
|
|
|
374
|
$p->{$type}{$module} = $version; |
17
|
15
|
|
|
|
|
93
|
return 1; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|