dpkg-parsechangelog reads and parses the changelog of an unpacked
Debian source tree and outputs the information in it to standard output
in a machine-readable form.
Specifies the changelog file to read information from. A '-'
can be used to specify reading from standard input. The default
Specifies the format of the changelog. By default the format is
read from a special line near the bottom of the changelog or
failing that defaults to the debian standard format. See also
Specify an additional directory to search for parser scripts.
This directory is searched before the default directories which
are currently /usr/local/lib/dpkg/parsechangelog and
-S, --show-field field
Specifies the name of the field to show (since dpkg 1.17.0).
The field name is not printed, only its value.
Show the usage message and exit.
Show the version and exit.
The following options can be used to influence the output of the
changelog parser, e.g. the range of entries or the format of the out-
put. They need to be supported by the parser script in question. See
Set the changelog filename to parse. Default is '-' (standard
-l, --label file
Set the name of the changelog file to use in error messages,
instead of using the name from the --file option, or its default
Set the output format. Currently supported values are dpkg and
rfc822. dpkg is the classic output format (from before this
option existed) and the default. It consists of one paragraph in
lowed by the concatenated (space-separated) comments from
all the versions requested.
The Closes fields of all included entries are merged.
The text of all changelog entries is concatenated. To
make this field a valid Debian control format multiline
field empty lines are replaced with a single full stop
and all lines is intended by one space character. The
exact content depends on the changelog format.
The Version, Distribution, Urgency, Maintainer and Changes
fields are mandatory.
There might be additional user-defined fields present.
The rfc822 format uses the same fields but outputs a separate
paragraph for each changelog entry so that all metadata for each
entry is preserved.
--all Include all changes. Note: other options have no effect when
this is in use.
-s, --since version
Include all changes later than version.
-u, --until version
Include all changes earlier than version.
-f, --from version
Include all changes equal or later than version.
-t, --to version
Include all changes up to or equal than version.
-c, --count number
Include number entries from the top (or the tail if number is
lower than 0).
-o, --offset number
Change the starting point for --count, counted from the top (or
the tail if number is lower than 0).
It is possible to use a different format to the standard one, by pro-
viding a parser for that alternative format.
sechangelog/otherformat; it is an error for it not being present or not
being an executable program. The default changelog format is debian,
and a parser for it is provided by default.
The parser will be invoked with the changelog open on standard input at
the start of the file. It should read the file (it may seek if it
wishes) to determine the information required and return the parsed
information to standard output in the format specified by the --format
option. It should accept all Parser Options.
If the changelog format which is being parsed always or almost always
leaves a blank line between individual change notes, these blank lines
should be stripped out, so as to make the resulting output compact.
If the changelog format does not contain date or package name informa-
tion this information should be omitted from the output. The parser
should not attempt to synthesize it or find it from other sources.
If the changelog does not have the expected format the parser should
exit with a nonzero exit status, rather than trying to muddle through
and possibly generating incorrect output.
A changelog parser may not interact with the user at all.
All Parser Options except for -v are only supported since dpkg 1.14.16.
Third party parsers for changelog formats other than debian might not
support all options.
Short option parsing with non-bundled values available only since dpkg
The changelog file, used to obtain version-dependent information
about the source package, such as the urgency and distribution
of an upload, the changes made since a particular release, and
the source version number itself.
Debian Project 2013-07-06 dpkg-parsechangelog(1)
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2019
All Rights Reserved.