Types.pm 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. package Dpkg::Control::Types;
  14. use strict;
  15. use warnings;
  16. our $VERSION = '0.01';
  17. our @EXPORT = qw(
  18. CTRL_UNKNOWN
  19. CTRL_INFO_SRC
  20. CTRL_INFO_PKG
  21. CTRL_REPO_RELEASE
  22. CTRL_INDEX_SRC
  23. CTRL_INDEX_PKG
  24. CTRL_PKG_SRC
  25. CTRL_PKG_DEB
  26. CTRL_FILE_BUILDINFO
  27. CTRL_FILE_CHANGES
  28. CTRL_FILE_VENDOR
  29. CTRL_FILE_STATUS
  30. CTRL_CHANGELOG
  31. CTRL_COPYRIGHT_HEADER
  32. CTRL_COPYRIGHT_FILES
  33. CTRL_COPYRIGHT_LICENSE
  34. CTRL_TESTS
  35. );
  36. use Exporter qw(import);
  37. =encoding utf8
  38. =head1 NAME
  39. Dpkg::Control::Types - export CTRL_* constants
  40. =head1 DESCRIPTION
  41. You should not use this module directly. Instead you more likely
  42. want to use Dpkg::Control which also re-exports the same constants.
  43. This module has been introduced solely to avoid a dependency loop
  44. between Dpkg::Control and Dpkg::Control::Fields.
  45. =cut
  46. use constant {
  47. CTRL_UNKNOWN => 0,
  48. # First control block in debian/control.
  49. CTRL_INFO_SRC => 1,
  50. # Subsequent control blocks in debian/control.
  51. CTRL_INFO_PKG => 2,
  52. # Entry in repository's Packages files.
  53. CTRL_INDEX_SRC => 4,
  54. # Entry in repository's Sources files.
  55. CTRL_INDEX_PKG => 8,
  56. # .dsc file of source package.
  57. CTRL_PKG_SRC => 16,
  58. # DEBIAN/control in binary packages.
  59. CTRL_PKG_DEB => 32,
  60. # .changes file.
  61. CTRL_FILE_CHANGES => 64,
  62. # File in $Dpkg::CONFDIR/origins.
  63. CTRL_FILE_VENDOR => 128,
  64. # $Dpkg::ADMINDIR/status.
  65. CTRL_FILE_STATUS => 256,
  66. # Output of dpkg-parsechangelog.
  67. CTRL_CHANGELOG => 512,
  68. # Repository's (In)Release file.
  69. CTRL_REPO_RELEASE => 1024,
  70. # Header control block in debian/copyright.
  71. CTRL_COPYRIGHT_HEADER => 2048,
  72. # Files control block in debian/copyright.
  73. CTRL_COPYRIGHT_FILES => 4096,
  74. # License control block in debian/copyright.
  75. CTRL_COPYRIGHT_LICENSE => 8192,
  76. # Package test suite control file in debian/tests/control.
  77. CTRL_TESTS => 16384,
  78. # .buildinfo file
  79. CTRL_FILE_BUILDINFO => 32768,
  80. };
  81. =head1 CHANGES
  82. =head2 Version 0.xx
  83. This is a private module.
  84. =cut
  85. 1;