.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" ======================================================================== .\" .IX Title "Dpkg::Control 3" .TH Dpkg::Control 3 "2016-03-26" "1.16.18" "libdpkg-perl" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Dpkg::Control \- parse and manipulate official control\-like information .SH "DESCRIPTION" .IX Header "DESCRIPTION" The Dpkg::Control object is a smart version of Dpkg::Control::Hash. It associates a type to the control information. That type can be used to know what fields are allowed and in what order they must be output. .PP The types are constants that are exported by default. Here's the full list: .IP "\s-1CTRL_UNKNOWN\s0" 4 .IX Item "CTRL_UNKNOWN" This type is the default type, it indicates that the type of control information is not yet known. .IP "\s-1CTRL_INFO_SRC\s0" 4 .IX Item "CTRL_INFO_SRC" Corresponds to the first block of information in a debian/control file in a Debian source package. .IP "\s-1CTRL_INFO_PKG\s0" 4 .IX Item "CTRL_INFO_PKG" Corresponds to subsequent blocks of information in a debian/control file in a Debian source package. .IP "\s-1CTRL_INDEX_SRC\s0" 4 .IX Item "CTRL_INDEX_SRC" Corresponds to an entry in a Sources file of a source package repository. .IP "\s-1CTRL_INDEX_PKG\s0" 4 .IX Item "CTRL_INDEX_PKG" Corresponds to an entry in a Packages file of a binary package repository. .IP "\s-1CTRL_PKG_SRC\s0" 4 .IX Item "CTRL_PKG_SRC" Corresponds to a .dsc file of a Debian source package. .IP "\s-1CTRL_PKG_DEB\s0" 4 .IX Item "CTRL_PKG_DEB" Corresponds to the control file generated by dpkg-gencontrol (DEBIAN/control) and to the same file inside .deb packages. .IP "\s-1CTRL_FILE_CHANGES\s0" 4 .IX Item "CTRL_FILE_CHANGES" Corresponds to a .changes file. .IP "\s-1CTRL_FILE_VENDOR\s0" 4 .IX Item "CTRL_FILE_VENDOR" Corresponds to a vendor file in /etc/dpkg/origins/. .IP "\s-1CTRL_FILE_STATUS\s0" 4 .IX Item "CTRL_FILE_STATUS" Corresponds to an entry in dpkg's status file (/var/lib/dpkg/status). .IP "\s-1CTRL_CHANGELOG\s0" 4 .IX Item "CTRL_CHANGELOG" Corresponds to the output of dpkg-parsechangelog. .SH "FUNCTIONS" .IX Header "FUNCTIONS" All the methods of Dpkg::Control::Hash are available. Those listed below are either new or overridden with a different behaviour. .ie n .IP "my $c = Dpkg::Control\->new(%opts)" 4 .el .IP "my \f(CW$c\fR = Dpkg::Control\->new(%opts)" 4 .IX Item "my $c = Dpkg::Control->new(%opts)" If the \*(L"type\*(R" option is given, it's used to setup default values for other options. See \fIset_options()\fR for more details. .ie n .IP "$c\->set_options(%opts)" 4 .el .IP "\f(CW$c\fR\->set_options(%opts)" 4 .IX Item "$c->set_options(%opts)" Changes the value of one or more options. If the \*(L"type\*(R" option is changed, it is used first to define default values for others options. The option \&\*(L"allow_pgp\*(R" is set to 1 for \s-1CTRL_PKG_SRC\s0 and \s-1CTRL_FILE_CHANGES\s0 and to 0 otherwise. The option \*(L"drop_empty\*(R" is set to 0 for \s-1CTRL_INFO_PKG\s0 and \&\s-1CTRL_INFO_SRC\s0 and to 1 otherwise. The option \*(L"name\*(R" is set to a textual description of the type of control information. .Sp The output order is also set to match the ordered list returned by Dpkg::Control::Fields::field_ordered_list($type). .ie n .IP "$c\->\fIget_type()\fR" 4 .el .IP "\f(CW$c\fR\->\fIget_type()\fR" 4 .IX Item "$c->get_type()" Returns the type of control information stored. See the type parameter set during \fInew()\fR. .SH "AUTHOR" .IX Header "AUTHOR" Raphaƫl Hertzog .