line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CPANPLUS::Dist::Debora::Package::Mageia; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later |
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
27574
|
use 5.016; |
|
3
|
|
|
|
|
23
|
|
6
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
79
|
|
7
|
3
|
|
|
3
|
|
15
|
use utf8; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
18
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.011'; |
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
251
|
use parent qw(CPANPLUS::Dist::Debora::Package::RPM); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
19
|
|
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
167
|
use CPANPLUS::Dist::Debora::Util qw(parse_version); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
571
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub format_priority { |
16
|
2
|
|
|
2
|
1
|
8
|
my $class = shift; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
6
|
my $priority = 0; |
19
|
2
|
50
|
|
|
|
62
|
if (-f '/etc/mageia-release') { |
20
|
0
|
|
|
|
|
0
|
$priority = $class->SUPER::format_priority; |
21
|
0
|
0
|
|
|
|
0
|
if ($priority > 0) { |
22
|
0
|
|
|
|
|
0
|
$priority = 3; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
2
|
|
|
|
|
13
|
return $priority; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub _normalize_version { |
32
|
0
|
|
|
0
|
|
|
my ($self, $dist_version) = @_; |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
my $version = $self->SUPER::_normalize_version($dist_version); |
35
|
0
|
|
|
|
|
|
$version = parse_version($version)->normal; |
36
|
0
|
|
|
|
|
|
$version =~ s{\A v}{}xms; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
return $version; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
__END__ |