Parse::DebianChangelog::Util(3pm)

Parse::DebianChangelog::Util3pm

Utility functions for parsing debian changelogs

Overview

This is currently only used internally by Parse::DebianChangelog. There may be still API changes until this module is finalized.

Functions

find_closes

Takes one string as argument and finds "Closes: #123456, #654321" statements as supported by the Debian Archive software in it. Returns all closed bug numbers in an array reference.

data2rfc822

Takes two hash references as arguments. The first should contain the data to output in RFC822 format. The second can contain a sorting order for the fields. The higher the numerical value of the hash value, the earlier the field is printed if it exists.

Return the data in RFC822 format as string.

data2rfc822_mult

The first argument should be an array ref to an array of hash references. The second argument is a hash reference and has the same meaning as the second argument of data2rfc822.

Calls data2rfc822 for each element of the array given as first argument and returns the concatenated results.

get_dpkg_changes

Takes a Parse::DebianChangelog::Entry object as first argument.

Returns a string that is suitable for using it in a "Changes" field in the output format of "dpkg-parsechangelog".

Releases

7 releases since Debian 4.0 (Etch); the text changed 6 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10

Author

Frank Lichtenheld, <[email protected]>

From libparse-debianchangelog-perl 1.2.0-13 in Debian 10 (Buster). Parsed by carta from the page's man source.