Types.pm 2.5 KB

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