| 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 | |||
| 14 | =encoding utf8 | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Dpkg::Control::Types - export CTRL_* constants | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | You should not use this module directly. Instead you more likely | ||
| 23 | want to use L<Dpkg::Control> which also re-exports the same constants. | ||
| 24 | |||
| 25 | This module has been introduced solely to avoid a dependency loop | ||
| 26 | between L<Dpkg::Control> and L<Dpkg::Control::Fields>. | ||
| 27 | |||
| 28 | B<Note>: This is a private module, its API can change at any time. | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | package Dpkg::Control::Types 0.01; | ||
| 33 | |||
| 34 | 15 | ▶ | use v5.36; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | |||
| 36 | 15 | our @EXPORT = qw( | |
| 37 | CTRL_UNKNOWN | ||
| 38 | CTRL_TMPL_SRC | ||
| 39 | CTRL_TMPL_PKG | ||
| 40 | CTRL_REPO_RELEASE | ||
| 41 | CTRL_REPO_SRC | ||
| 42 | CTRL_REPO_PKG | ||
| 43 | CTRL_DSC | ||
| 44 | CTRL_DEB | ||
| 45 | CTRL_FILE_BUILDINFO | ||
| 46 | CTRL_FILE_CHANGES | ||
| 47 | CTRL_FILE_VENDOR | ||
| 48 | CTRL_FILE_STATUS | ||
| 49 | CTRL_CHANGELOG | ||
| 50 | CTRL_COPYRIGHT_HEADER | ||
| 51 | CTRL_COPYRIGHT_FILES | ||
| 52 | CTRL_COPYRIGHT_LICENSE | ||
| 53 | CTRL_TESTS | ||
| 54 | |||
| 55 | CTRL_INFO_SRC | ||
| 56 | CTRL_INFO_PKG | ||
| 57 | CTRL_PKG_SRC | ||
| 58 | CTRL_PKG_DEB | ||
| 59 | CTRL_INDEX_SRC | ||
| 60 | CTRL_INDEX_PKG | ||
| 61 | ); | ||
| 62 | |||
| 63 | 15 | ▶ | use Exporter qw(import); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 64 | |||
| 65 | 15 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 66 | 15 | CTRL_UNKNOWN => 0, | |
| 67 | # First source package control stanza in debian/control. | ||
| 68 | CTRL_TMPL_SRC => 1 << 0, | ||
| 69 | # Subsequent binary package control stanza in debian/control. | ||
| 70 | CTRL_TMPL_PKG => 1 << 1, | ||
| 71 | # Entry in repository's Sources files. | ||
| 72 | CTRL_REPO_SRC => 1 << 2, | ||
| 73 | # Entry in repository's Packages files. | ||
| 74 | CTRL_REPO_PKG => 1 << 3, | ||
| 75 | # .dsc file of source package. | ||
| 76 | CTRL_DSC => 1 << 4, | ||
| 77 | # DEBIAN/control in binary packages. | ||
| 78 | CTRL_DEB => 1 << 5, | ||
| 79 | # .changes file. | ||
| 80 | CTRL_FILE_CHANGES => 1 << 6, | ||
| 81 | # File in $Dpkg::CONFDIR/origins. | ||
| 82 | CTRL_FILE_VENDOR => 1 << 7, | ||
| 83 | # $Dpkg::ADMINDIR/status. | ||
| 84 | CTRL_FILE_STATUS => 1 << 8, | ||
| 85 | # Output of dpkg-parsechangelog. | ||
| 86 | CTRL_CHANGELOG => 1 << 9, | ||
| 87 | # Repository's (In)Release file. | ||
| 88 | CTRL_REPO_RELEASE => 1 << 10, | ||
| 89 | # Header control stanza in debian/copyright. | ||
| 90 | CTRL_COPYRIGHT_HEADER => 1 << 11, | ||
| 91 | # Files control stanza in debian/copyright. | ||
| 92 | CTRL_COPYRIGHT_FILES => 1 << 12, | ||
| 93 | # License control stanza in debian/copyright. | ||
| 94 | CTRL_COPYRIGHT_LICENSE => 1 << 13, | ||
| 95 | # Package test suite control file in debian/tests/control. | ||
| 96 | CTRL_TESTS => 1 << 14, | ||
| 97 | # .buildinfo file | ||
| 98 | CTRL_FILE_BUILDINFO => 1 << 15, | ||
| 99 | 15 | }; | |
| 100 | |||
| 101 | # Backwards compatibility aliases. | ||
| 102 | 15 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 103 | 15 | CTRL_INFO_SRC => CTRL_TMPL_SRC, | |
| 104 | CTRL_INFO_PKG => CTRL_TMPL_PKG, | ||
| 105 | CTRL_PKG_SRC => CTRL_DSC, | ||
| 106 | CTRL_PKG_DEB => CTRL_DEB, | ||
| 107 | CTRL_INDEX_SRC => CTRL_REPO_SRC, | ||
| 108 | CTRL_INDEX_PKG => CTRL_REPO_PKG, | ||
| 109 | 15 | }; | |
| 110 | |||
| 111 | =head1 CHANGES | ||
| 112 | |||
| 113 | =head2 Version 0.xx | ||
| 114 | |||
| 115 | This is a private module. | ||
| 116 | |||
| 117 | =cut | ||
| 118 | |||
| 119 | 15 | 1; | |