Dpkg/Vendor/Devuan.pm

filter: Statementstmt 37.5% 6 / 16 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 30.0% 9 / 30 CC 7 SCAR 37.8
CC
7
Cov
23%
run_hook
56.0
BEGIN
1.0
BEGIN
1.0
CRAP 43.8
« Dpkg/Vendor/PureOS.pm ↑ Summary Dpkg/OpenPGP/Backend/GnuPG.pm »
1 # Copyright © 2022 Guillem Jover <guillem@debian.org>
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
15  
16 =encoding utf8
17  
18 =head1 NAME
19  
20 Dpkg::Vendor::Devuan - Devuan vendor class
21  
22 =head1 DESCRIPTION
23  
24 This vendor class customizes the behavior of dpkg scripts for Devuan
25 specific behavior and policies.
26  
27 B<Note>: This is a private module, its API can change at any time.
28  
29 =cut
30  
31 package Dpkg::Vendor::Devuan 0.01;
32  
33 1 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 1 ▶use parent qw(Dpkg::Vendor::Debian);
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 0 ▶sub run_hook {
Subroutine run_hook: not called CC=7 SCAR=40.3
Pod documented
38 0 my ($self, $hook, @params) = @_;
39  
40 0 ▶ if ($hook eq 'package-keyrings') {
Branch: 4 branches
BranchTrueFalseTotal
if ($hook eq 'package-keyrings') { } 0 0 0
elsif ($hook eq 'archive-keyrings') { } 0 0 0
elsif ($hook eq 'archive-keyrings-historic') { } 0 0 0
elsif ($hook eq 'extend-patch-header') { } 0 0 0
41 0 return ('/usr/share/keyrings/devuan-keyring.pgp',
42 '/usr/share/keyrings/devuan-maintainers.pgp');
43 } elsif ($hook eq 'archive-keyrings') {
44 0 return ('/usr/share/keyrings/devuan-archive-keyring.pgp');
45 } elsif ($hook eq 'archive-keyrings-historic') {
46 0 return ('/usr/share/keyrings/devuan-archive-removed-keys.pgp');
47 } elsif ($hook eq 'extend-patch-header') {
48 0 my ($textref, $ch_info) = @params;
49 0 ▶ if ($ch_info->{'Closes'}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ch_info->{"Closes"}) 0 0 0
50 0 foreach my $bug (split(/\s+/, $ch_info->{'Closes'})) {
51 0 $$textref .= "Bug-Devuan: https://bugs.devuan.org/$bug\n";
52 }
53 }
54 } else {
55 0 return $self->SUPER::run_hook($hook, @params);
56 }
57 }
58  
59 =head1 CHANGES
60  
61 =head2 Version 0.xx
62  
63 This is a private module.
64  
65 =cut
66  
67 1 1;
« Dpkg/Vendor/PureOS.pm ↑ Summary Dpkg/OpenPGP/Backend/GnuPG.pm »