Dpkg::Changelog::Entry::Debian

Section: libdpkg-perl (3)
Updated: 2015-08-26
Index Return to Main Contents
 

NAME

Dpkg::Changelog::Entry::Debian - represents a Debian changelog entry  

DESCRIPTION

This object represents a Debian changelog entry. It implements the generic interface Dpkg::Changelog::Entry. Only functions specific to this implementation are described below.  

METHODS

@items = $entry->get_change_items()
Return a list of change items. Each item contains at least one line. A change line starting with an asterisk denotes the start of a new item. Any change line like ``[ Raphaël Hertzog ]'' is treated like an item of its own even if it starts a set of items attributed to this person (the following line necessarily starts a new item).
@errors = $entry->check_header()
@errors = $entry->check_trailer()
Return a list of errors. Each item in the list is an error message describing the problem. If the empty list is returned, no errors have been found.
$entry->normalize()
Normalize the content. Strip whitespaces at end of lines, use a single empty line to separate each part.
 

UTILITY FUNCTIONS

$bool = match_header($line)
Checks if the line matches a valid changelog header line.
$bool = match_trailer($line)
Checks if the line matches a valid changelog trailing line.
@closed_bugs = find_closes($changes)
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.
 

CHANGES

 

Version 1.01 (dpkg 1.17.2)

New functions: match_header(), match_trailer()

Deprecated variables: $regex_header, $regex_trailer  

Version 1.00 (dpkg 1.15.6)

Mark the module as public.  

AUTHOR

Raphaël Hertzog <hertzog@debian.org>.


 

Index

NAME
DESCRIPTION
METHODS
UTILITY FUNCTIONS
CHANGES
Version 1.01 (dpkg 1.17.2)
Version 1.00 (dpkg 1.15.6)
AUTHOR