Types.pm 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_INDEX_SRC
  22. CTRL_INDEX_PKG
  23. CTRL_PKG_SRC
  24. CTRL_PKG_DEB
  25. CTRL_FILE_CHANGES
  26. CTRL_FILE_VENDOR
  27. CTRL_FILE_STATUS
  28. CTRL_CHANGELOG
  29. );
  30. use Exporter qw(import);
  31. =encoding utf8
  32. =head1 NAME
  33. Dpkg::Control::Types - export CTRL_* constants
  34. =head1 DESCRIPTION
  35. You should not use this module directly. Instead you more likely
  36. want to use Dpkg::Control which also re-exports the same constants.
  37. This module has been introduced solely to avoid a dependency loop
  38. between Dpkg::Control and Dpkg::Control::Fields.
  39. =cut
  40. use constant {
  41. CTRL_UNKNOWN => 0,
  42. CTRL_INFO_SRC => 1, # First control block in debian/control
  43. CTRL_INFO_PKG => 2, # Subsequent control blocks in debian/control
  44. CTRL_INDEX_SRC => 4, # Entry in repository's Packages files
  45. CTRL_INDEX_PKG => 8, # Entry in repository's Sources files
  46. CTRL_PKG_SRC => 16, # .dsc file of source package
  47. CTRL_PKG_DEB => 32, # DEBIAN/control in binary packages
  48. CTRL_FILE_CHANGES => 64, # .changes file
  49. CTRL_FILE_VENDOR => 128, # File in $Dpkg::CONFDIR/origins
  50. CTRL_FILE_STATUS => 256, # $Dpkg::ADMINDIR/status
  51. CTRL_CHANGELOG => 512, # Output of dpkg-parsechangelog
  52. };
  53. =head1 CHANGES
  54. =head2 Version 0.xx
  55. This is a private module.
  56. =head1 AUTHOR
  57. Raphaël Hertzog <hertzog@debian.org>.
  58. =cut
  59. 1;