221 lines
5.3 KiB
HTML
221 lines
5.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Dpkg::Source::Package</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Dpkg::Source::Package</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::Source::Package - manipulate Debian source packages
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This module provides an object that can manipulate Debian source
|
|
packages. While it supports both the extraction and the creation
|
|
of source packages, the only <FONT SIZE="-1">API</FONT> that is officially supported
|
|
is the one that supports the extraction of the source package.
|
|
<A NAME="lbAD"> </A>
|
|
<H2>FUNCTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">$string = <B>get_default_diff_ignore_regex()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns the default diff ignore regex.
|
|
<DT id="2">set_default_diff_ignore_regex($string)<DD>
|
|
|
|
|
|
Set a regex as the new default diff ignore regex.
|
|
<DT id="3">@array = <B>get_default_tar_ignore_pattern()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns the default tar ignore pattern, as an array.
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>METHODS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="4">$p = Dpkg::Source::Package->new(%opts, options => {})<DD>
|
|
|
|
|
|
|
|
|
|
Creates a new object corresponding to a source package. When the key
|
|
<B>filename</B> is set to a <I>.dsc</I> file, it will be used to initialize the
|
|
source package with its description. Otherwise if the <B>format</B> key is
|
|
set to a valid value, the object will be initialized for that format
|
|
(since dpkg 1.19.3).
|
|
|
|
|
|
<P>
|
|
|
|
|
|
The <B>options</B> key is a hash ref which supports the following options:
|
|
<DL COMPACT><DT id="5"><DD>
|
|
<DL COMPACT>
|
|
<DT id="6">skip_debianization<DD>
|
|
|
|
|
|
If set to 1, do not apply Debian changes on the extracted source package.
|
|
<DT id="7">skip_patches<DD>
|
|
|
|
|
|
If set to 1, do not apply Debian-specific patches. This options is
|
|
specific for source packages using format ``2.0'' and ``3.0 (quilt)''.
|
|
<DT id="8">require_valid_signature<DD>
|
|
|
|
|
|
If set to 1, the <B>check_signature()</B> method will be stricter and will error
|
|
out if the signature can't be verified.
|
|
<DT id="9">require_strong_checksums<DD>
|
|
|
|
|
|
If set to 1, the <B>check_checksums()</B> method will be stricter and will error
|
|
out if there is no strong checksum.
|
|
<DT id="10">copy_orig_tarballs<DD>
|
|
|
|
|
|
If set to 1, the extraction will copy the upstream tarballs next the
|
|
target directory. This is useful if you want to be able to rebuild the
|
|
source package after its extraction.
|
|
</DL>
|
|
</DL>
|
|
|
|
<DL COMPACT><DT id="11"><DD>
|
|
</DL>
|
|
|
|
<DT id="12">$p-><B>get_filename()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns the filename of the <FONT SIZE="-1">DSC</FONT> file.
|
|
<DT id="13">$p-><B>get_files()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns the list of files referenced by the source package. The filenames
|
|
usually do not have any path information.
|
|
<DT id="14">$p-><B>check_checksums()</B><DD>
|
|
|
|
|
|
|
|
|
|
Verify the checksums embedded in the <FONT SIZE="-1">DSC</FONT> file. It requires the presence of
|
|
the other files constituting the source package. If any inconsistency is
|
|
discovered, it immediately errors out. It will make sure at least one strong
|
|
checksum is present.
|
|
|
|
|
|
<P>
|
|
|
|
|
|
If the object has been created with the ``require_strong_checksums'' option,
|
|
then any problem will result in a fatal error.
|
|
<DT id="15">$bool = $p-><B>is_signed()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns 1 if the <FONT SIZE="-1">DSC</FONT> files contains an embedded OpenPGP signature.
|
|
Otherwise returns 0.
|
|
<DT id="16">$p-><B>check_signature()</B><DD>
|
|
|
|
|
|
|
|
|
|
Implement the same OpenPGP signature check that dpkg-source does.
|
|
In case of problems, it prints a warning or errors out.
|
|
|
|
|
|
<P>
|
|
|
|
|
|
If the object has been created with the ``require_valid_signature'' option,
|
|
then any problem will result in a fatal error.
|
|
<DT id="17">$p->extract($targetdir)<DD>
|
|
|
|
|
|
|
|
|
|
Extracts the source package in the target directory <TT>$targetdir</TT>. Beware
|
|
that if <TT>$targetdir</TT> already exists, it will be erased (as long as the
|
|
no_overwrite_dir option is set).
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>CHANGES</H2>
|
|
|
|
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Version 1.03 (dpkg 1.19.3)</H3>
|
|
|
|
|
|
|
|
New option: format in <B>new()</B>.
|
|
<A NAME="lbAH"> </A>
|
|
<H3>Version 1.02 (dpkg 1.18.7)</H3>
|
|
|
|
|
|
|
|
New option: require_strong_checksums in <B>check_checksums()</B>.
|
|
<A NAME="lbAI"> </A>
|
|
<H3>Version 1.01 (dpkg 1.17.2)</H3>
|
|
|
|
|
|
|
|
New functions: <B>get_default_diff_ignore_regex()</B>, <B>set_default_diff_ignore_regex()</B>,
|
|
<B>get_default_tar_ignore_pattern()</B>
|
|
<P>
|
|
|
|
Deprecated variables: <TT>$diff_ignore_default_regexp</TT>, <TT>@tar_ignore_default_pattern</TT>
|
|
<A NAME="lbAJ"> </A>
|
|
<H3>Version 1.00 (dpkg 1.16.1)</H3>
|
|
|
|
|
|
|
|
Mark the module as public.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="18"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="19"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DT id="20"><A HREF="#lbAD">FUNCTIONS</A><DD>
|
|
<DT id="21"><A HREF="#lbAE">METHODS</A><DD>
|
|
<DT id="22"><A HREF="#lbAF">CHANGES</A><DD>
|
|
<DL>
|
|
<DT id="23"><A HREF="#lbAG">Version 1.03 (dpkg 1.19.3)</A><DD>
|
|
<DT id="24"><A HREF="#lbAH">Version 1.02 (dpkg 1.18.7)</A><DD>
|
|
<DT id="25"><A HREF="#lbAI">Version 1.01 (dpkg 1.17.2)</A><DD>
|
|
<DT id="26"><A HREF="#lbAJ">Version 1.00 (dpkg 1.16.1)</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:39 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|