Types.pm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package Dpkg::Control::Types;
  2. use base qw(Exporter);
  3. our @EXPORT = qw(CTRL_UNKNOWN CTRL_INFO_SRC CTRL_INFO_PKG CTRL_INDEX_SRC
  4. CTRL_INDEX_PKG CTRL_PKG_SRC CTRL_PKG_DEB CTRL_FILE_CHANGES
  5. CTRL_FILE_VENDOR CTRL_FILE_STATUS CTRL_CHANGELOG);
  6. =head1 NAME
  7. Dpkg::Control::Types - export CTRL_* constants
  8. =head1 DESCRIPTION
  9. You should not use this module directly. Instead you more likely
  10. want to use Dpkg::Control which also re-exports the same constants.
  11. This module has been introduced solely to avoid a dependency loop
  12. between Dpkg::Control and Dpkg::Control::Fields.
  13. =cut
  14. use constant {
  15. CTRL_UNKNOWN => 0,
  16. CTRL_INFO_SRC => 1, # First control block in debian/control
  17. CTRL_INFO_PKG => 2, # Subsequent control blocks in debian/control
  18. CTRL_INDEX_SRC => 4, # Entry in APT's Packages files
  19. CTRL_INDEX_PKG => 8, # Entry in APT's Sources files
  20. CTRL_PKG_SRC => 16, # .dsc file of source package
  21. CTRL_PKG_DEB => 32, # DEBIAN/control in binary packages
  22. CTRL_FILE_CHANGES => 64, # .changes file
  23. CTRL_FILE_VENDOR => 128, # File in /etc/dpkg/origins
  24. CTRL_FILE_STATUS => 256, # /var/lib/dpkg/status
  25. CTRL_CHANGELOG => 512, # Output of dpkg-parsechangelog
  26. };
  27. =head1 AUTHOR
  28. Raphaël Hertzog <hertzog@debian.org>.
  29. =cut
  30. 1;