man-pages/man3/Dpkg::Deps::Multiple.3perl.html
2021-03-31 01:06:50 +01:00

168 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Dpkg::Deps::Multiple</TITLE>
</HEAD><BODY>
<H1>Dpkg::Deps::Multiple</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">&nbsp;</A>
<H2>NAME</H2>
Dpkg::Deps::Multiple - base module to represent multiple dependencies
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>
The Dpkg::Deps::Multiple module provides objects implementing various types
of dependencies. It is the base class for Dpkg::Deps::{<FONT SIZE="-1">AND,OR</FONT>,Union}.
<A NAME="lbAD">&nbsp;</A>
<H2>METHODS</H2>
<DL COMPACT>
<DT id="1">$dep = Dpkg::Deps::Multiple-&gt;new(%opts);<DD>
Creates a new object.
<DT id="2">$dep-&gt;<B>reset()</B><DD>
Clears any dependency information stored in <TT>$dep</TT> so that <TT>$dep</TT>-&gt;<B>is_empty()</B>
returns true.
<DT id="3">$dep-&gt;add(@deps)<DD>
Adds new dependency objects at the end of the list.
<DT id="4">$dep-&gt;<B>get_deps()</B><DD>
Returns a list of sub-dependencies.
<DT id="5">$dep-&gt;<B>sort()</B><DD>
Sorts alphabetically the internal list of dependencies.
<DT id="6">$dep-&gt;arch_is_concerned($arch)<DD>
Returns true if at least one of the sub-dependencies apply to this
architecture.
<DT id="7">$dep-&gt;reduce_arch($arch)<DD>
Simplifies the dependencies to contain only information relevant to the
given architecture. The non-relevant sub-dependencies are simply removed.
<P>
This trims off the architecture restriction list of Dpkg::Deps::Simple
objects.
<DT id="8">$dep-&gt;<B>has_arch_restriction()</B><DD>
Returns the list of package names that have such a restriction.
<DT id="9">$dep-&gt;<B>profile_is_concerned()</B><DD>
Returns true if at least one of the sub-dependencies apply to this profile.
<DT id="10">$dep-&gt;<B>reduce_profiles()</B><DD>
Simplifies the dependencies to contain only information relevant to the
given profile. The non-relevant sub-dependencies are simply removed.
<P>
This trims off the profile restriction list of Dpkg::Deps::Simple objects.
<DT id="11">$dep-&gt;<B>is_empty()</B><DD>
Returns true if the dependency is empty and doesn't contain any useful
information. This is true when a (descendant of) Dpkg::Deps::Multiple
contains an empty list of dependencies.
<DT id="12">$dep-&gt;merge_union($other_dep)<DD>
This method is not meaningful for this object, and will always croak.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>CHANGES</H2>
<A NAME="lbAF">&nbsp;</A>
<H3>Version 1.02 (dpkg 1.17.10)</H3>
New methods: Add <TT>$dep</TT>-&gt;<B>profile_is_concerned()</B> and <TT>$dep</TT>-&gt;<B>reduce_profiles()</B>.
<A NAME="lbAG">&nbsp;</A>
<H3>Version 1.01 (dpkg 1.16.1)</H3>
New method: Add <TT>$dep</TT>-&gt;<B>reset()</B>.
<A NAME="lbAH">&nbsp;</A>
<H3>Version 1.00 (dpkg 1.15.6)</H3>
Mark the module as public.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="13"><A HREF="#lbAB">NAME</A><DD>
<DT id="14"><A HREF="#lbAC">DESCRIPTION</A><DD>
<DT id="15"><A HREF="#lbAD">METHODS</A><DD>
<DT id="16"><A HREF="#lbAE">CHANGES</A><DD>
<DL>
<DT id="17"><A HREF="#lbAF">Version 1.02 (dpkg 1.17.10)</A><DD>
<DT id="18"><A HREF="#lbAG">Version 1.01 (dpkg 1.16.1)</A><DD>
<DT id="19"><A HREF="#lbAH">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:39 GMT, March 31, 2021
</BODY>
</HTML>