199 lines
4.3 KiB
HTML
199 lines
4.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Dpkg::Changelog::Entry</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Dpkg::Changelog::Entry</H1>
|
|
Section: libdpkg-perl (3perl)<BR>Updated: 2020-03-23<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Dpkg::Changelog::Entry - represents a changelog entry
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This object represents a changelog entry. It is composed
|
|
of a set of lines with specific purpose: an header line, changes lines, a
|
|
trailer line. Blank lines can be between those kind of lines.
|
|
<A NAME="lbAD"> </A>
|
|
<H2>METHODS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">$entry = Dpkg::Changelog::Entry-><B>new()</B><DD>
|
|
|
|
|
|
|
|
|
|
Creates a new object. It doesn't represent a real changelog entry
|
|
until one has been successfully parsed or built from scratch.
|
|
<DT id="2">$str = $entry-><B>output()</B><DD>
|
|
|
|
|
|
|
|
|
|
|
|
<DT id="3">"$entry"<DD>
|
|
|
|
|
|
|
|
|
|
|
|
Get a string representation of the changelog entry.
|
|
<DT id="4">$entry->output($fh)<DD>
|
|
|
|
|
|
|
|
|
|
Print the string representation of the changelog entry to a
|
|
filehandle.
|
|
<DT id="5">$entry->get_part($part)<DD>
|
|
|
|
|
|
|
|
|
|
Return either a string (for a single line) or an array ref (for multiple
|
|
lines) corresponding to the requested part. <TT>$part</TT> can be
|
|
``header, ''changes``, ''trailer``, ''blank_after_header``,
|
|
''blank_after_changes``, ''blank_after_trailer".
|
|
<DT id="6">$entry->set_part($part, $value)<DD>
|
|
|
|
|
|
|
|
|
|
Set the value of the corresponding part. <TT>$value</TT> can be a string
|
|
or an array ref.
|
|
<DT id="7">$entry->extend_part($part, $value)<DD>
|
|
|
|
|
|
|
|
|
|
Concatenate <TT>$value</TT> at the end of the part. If the part is already a
|
|
multi-line value, <TT>$value</TT> is added as a new line otherwise it's
|
|
concatenated at the end of the current line.
|
|
<DT id="8">$is_empty = $entry-><B>is_empty()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns 1 if the changelog entry doesn't contain anything at all.
|
|
Returns 0 as soon as it contains something in any of its non-blank
|
|
parts.
|
|
<DT id="9">$entry-><B>normalize()</B><DD>
|
|
|
|
|
|
|
|
|
|
Normalize the content. Strip whitespaces at end of lines, use a single
|
|
empty line to separate each part.
|
|
<DT id="10">$src = $entry-><B>get_source()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return the name of the source package associated to the changelog entry.
|
|
<DT id="11">$ver = $entry-><B>get_version()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return the version associated to the changelog entry.
|
|
<DT id="12">@dists = $entry-><B>get_distributions()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return a list of target distributions for this version.
|
|
<DT id="13">$fields = $entry-><B>get_optional_fields()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return a set of optional fields exposed by the changelog entry.
|
|
It always returns a Dpkg::Control object (possibly empty though).
|
|
<DT id="14">$urgency = $entry-><B>get_urgency()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return the urgency of the associated upload.
|
|
<DT id="15">$maint = $entry-><B>get_maintainer()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return the string identifying the person who signed this changelog entry.
|
|
<DT id="16">$time = $entry-><B>get_timestamp()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return the timestamp of the changelog entry.
|
|
<DT id="17">$time = $entry-><B>get_timepiece()</B><DD>
|
|
|
|
|
|
|
|
|
|
Return the timestamp of the changelog entry as a Time::Piece object.
|
|
|
|
|
|
<P>
|
|
|
|
|
|
This function might return undef if there was no timestamp.
|
|
<DT id="18">$str = $entry-><B>get_dpkg_changes()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns a string that is suitable for usage in a <TT>"Changes"</TT> field
|
|
in the output format of <TT>"dpkg-parsechangelog"</TT>.
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>CHANGES</H2>
|
|
|
|
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Version 1.01 (dpkg 1.18.8)</H3>
|
|
|
|
|
|
|
|
New method: <TT>$entry</TT>-><B>get_timepiece()</B>.
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Version 1.00 (dpkg 1.15.6)</H3>
|
|
|
|
|
|
|
|
Mark the module as public.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="19"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="20"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DT id="21"><A HREF="#lbAD">METHODS</A><DD>
|
|
<DT id="22"><A HREF="#lbAE">CHANGES</A><DD>
|
|
<DL>
|
|
<DT id="23"><A HREF="#lbAF">Version 1.01 (dpkg 1.18.8)</A><DD>
|
|
<DT id="24"><A HREF="#lbAG">Version 1.00 (dpkg 1.15.6)</A><DD>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:38 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|