File Coverage

File:Dpkg/Control/Types.pm
Coverage:100.0%

linestmtbrancondsubpodtimecode
1# This program is free software; you can redistribute it and/or modify
2# it under the terms of the GNU General Public License as published by
3# the Free Software Foundation; either version 2 of the License, or
4# (at your option) any later version.
5#
6# This program is distributed in the hope that it will be useful,
7# but WITHOUT ANY WARRANTY; without even the implied warranty of
8# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9# GNU General Public License for more details.
10#
11# You should have received a copy of the GNU General Public License
12# along with this program.  If not, see <https://www.gnu.org/licenses/>.
13
14package Dpkg::Control::Types;
15
16
44
44
44
87
19
474
use strict;
17
44
44
44
66
28
1570
use warnings;
18
19our $VERSION = '0.01';
20our @EXPORT = qw(
21    CTRL_UNKNOWN
22    CTRL_INFO_SRC
23    CTRL_INFO_PKG
24    CTRL_REPO_RELEASE
25    CTRL_INDEX_SRC
26    CTRL_INDEX_PKG
27    CTRL_PKG_SRC
28    CTRL_PKG_DEB
29    CTRL_FILE_BUILDINFO
30    CTRL_FILE_CHANGES
31    CTRL_FILE_VENDOR
32    CTRL_FILE_STATUS
33    CTRL_CHANGELOG
34    CTRL_COPYRIGHT_HEADER
35    CTRL_COPYRIGHT_FILES
36    CTRL_COPYRIGHT_LICENSE
37    CTRL_TESTS
38);
39
40
44
44
44
101
50
1547
use Exporter qw(import);
41
42=encoding utf8
43
44 - 56
=head1 NAME

Dpkg::Control::Types - export CTRL_* constants

=head1 DESCRIPTION

You should not use this module directly. Instead you more likely
want to use Dpkg::Control which also re-exports the same constants.

This module has been introduced solely to avoid a dependency loop
between Dpkg::Control and Dpkg::Control::Fields.

=cut
57
58use constant {
59
44
2861
    CTRL_UNKNOWN => 0,
60    # First control block in debian/control.
61    CTRL_INFO_SRC => 1 << 0,
62    # Subsequent control blocks in debian/control.
63    CTRL_INFO_PKG => 1 << 1,
64    # Entry in repository's Sources files.
65    CTRL_INDEX_SRC => 1 << 2,
66    # Entry in repository's Packages files.
67    CTRL_INDEX_PKG => 1 << 3,
68    # .dsc file of source package.
69    CTRL_PKG_SRC => 1 << 4,
70    # DEBIAN/control in binary packages.
71    CTRL_PKG_DEB => 1 << 5,
72    # .changes file.
73    CTRL_FILE_CHANGES => 1 << 6,
74    # File in $Dpkg::CONFDIR/origins.
75    CTRL_FILE_VENDOR => 1 << 7,
76    # $Dpkg::ADMINDIR/status.
77    CTRL_FILE_STATUS => 1 << 8,
78    # Output of dpkg-parsechangelog.
79    CTRL_CHANGELOG => 1 << 9,
80    # Repository's (In)Release file.
81    CTRL_REPO_RELEASE => 1 << 10,
82    # Header control block in debian/copyright.
83    CTRL_COPYRIGHT_HEADER => 1 << 11,
84    # Files control block in debian/copyright.
85    CTRL_COPYRIGHT_FILES => 1 << 12,
86    # License control block in debian/copyright.
87    CTRL_COPYRIGHT_LICENSE => 1 << 13,
88    # Package test suite control file in debian/tests/control.
89    CTRL_TESTS => 1 << 14,
90    # .buildinfo file
91    CTRL_FILE_BUILDINFO => 1 << 15,
92
44
44
224
31
};
93
94 - 100
=head1 CHANGES

=head2 Version 0.xx

This is a private module.

=cut
101
1021;