/usr/share/doc/lintian/api.html/Lintian/ProcessableGroup.html is in lintian 2.5.43.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Lintian::ProcessableGroup</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" title="blkbluw" type="text/css" href="../_blkbluw.css" media="all" >
<link rel="alternate stylesheet" title="blkmagw" type="text/css" href="../_blkmagw.css" media="all" >
<link rel="alternate stylesheet" title="blkcynw" type="text/css" href="../_blkcynw.css" media="all" >
<link rel="alternate stylesheet" title="whtprpk" type="text/css" href="../_whtprpk.css" media="all" >
<link rel="alternate stylesheet" title="whtnavk" type="text/css" href="../_whtnavk.css" media="all" >
<link rel="alternate stylesheet" title="grygrnk" type="text/css" href="../_grygrnk.css" media="all" >
<link rel="alternate stylesheet" title="whtgrng" type="text/css" href="../_whtgrng.css" media="all" >
<link rel="alternate stylesheet" title="blkgrng" type="text/css" href="../_blkgrng.css" media="all" >
<link rel="alternate stylesheet" title="grygrnw" type="text/css" href="../_grygrnw.css" media="all" >
<link rel="alternate stylesheet" title="blkbluw" type="text/css" href="../_blkbluw.css" media="all" >
<link rel="alternate stylesheet" title="whtpurk" type="text/css" href="../_whtpurk.css" media="all" >
<link rel="alternate stylesheet" title="whtgrng" type="text/css" href="../_whtgrng.css" media="all" >
<link rel="alternate stylesheet" title="grygrnw" type="text/css" href="../_grygrnw.css" media="all" >
<script type="text/javascript" src="../_podly.js"></script>
</head>
<body class='pod'>
<!-- start doc -->
<p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents"><<</a></b></p>
<div class='indexgroup'>
<ul class='indexList indexList1'>
<li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
<li class='indexItem indexItem1'><a href='#SYNOPSIS'>SYNOPSIS</a>
<li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
<li class='indexItem indexItem1'><a href='#METHODS'>METHODS</a>
<li class='indexItem indexItem1'><a href='#AUTHOR'>AUTHOR</a>
<li class='indexItem indexItem1'><a href='#SEE_ALSO'>SEE ALSO</a>
</ul>
</div>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>
<p>Lintian::ProcessableGroup -- A group of objects that Lintian can process</p>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>
<pre> use Lintian::ProcessableGroup;
my $group = Lintian::ProcessableGroup->new('lintian_2.5.0_i386.changes');
foreach my $proc ($group->get_processables()){
printf "%s %s (%s)\n", $proc->pkg_name(),
$proc->pkg_version(), $proc->pkg_type();
}
# etc.</pre>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>
<p>Instances of this perl class are sets of <a href="../Lintian/Processable.html" class="podlinkpod"
>processables</a>. It allows at most one source and one changes package per set, but multiple binary packages (provided that the binary is not already in the set).</p>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="METHODS"
>METHODS</a></h1>
<dl>
<dt><a name="Lintian::ProcessableGroup->new_([LAB[,_CHANGES]])"
>Lintian::ProcessableGroup->new ([LAB[, CHANGES]])</a></dt>
<dd>
<p>Creates a group and optionally add all processables from CHANGES.</p>
<p>If the LAB parameter is given, all processables added to this group will be stored as a <a href="../Lintian/Lab/Entry.html" class="podlinkpod"
>lab entry</a> from LAB.</p>
<dt><a name="$group->add_new_processable_($pkg_path[,_$pkg_type])"
>$group->add_new_processable ($pkg_path[, $pkg_type])</a></dt>
<dd>
<p>Adds a new processable of type $pkg_type from $pkg_path. If $pkg_type is not given, it will be determined by the file extension.</p>
<p>This is short hand for:</p>
<pre> $group->add_processable(
Lintian::Processable->new ($pkg_path, $pkg_type));</pre>
<dt><a name="$group->add_processable($proc)"
>$group->add_processable($proc)</a></dt>
<dd>
<p>Adds $proc to $group. At most one source and one changes $proc can be in a $group. There can be multiple binary $proc's, as long as they are all unique.</p>
<p>This will error out if an additional source or changes $proc is added to the group. Otherwise it will return a truth value if $proc was added.</p>
<dt><a name="$group->get_processables([$type])"
>$group->get_processables([$type])</a></dt>
<dd>
<p>Returns an array of all processables in $group. The processables are returned in the following order: changes (if any), source (if any), all binaries (if any) and all udebs (if any).</p>
<p>This order is based on the original order that Lintian processed packages in and some parts of the code relies on this order.</p>
<p>Note if $type is given, then only processables of that type is returned.</p>
<dt><a name="$group->remove_processable($proc)"
>$group->remove_processable($proc)</a></dt>
<dd>
<p>Removes $proc from $group</p>
<dt><a name="$group->get_source_processable()"
>$group->get_source_processable()</a></dt>
<dd>
<p>Returns the processable identified as the "source" package (e.g. the dsc).</p>
<p>If $group does not have a source processable, this method returns <code>undef</code>.</p>
<dt><a name="$group->get_changes_processable()"
>$group->get_changes_processable()</a></dt>
<dd>
<p>Returns the processable identified as the "changes" processable (e.g. the changes file).</p>
<p>If $group does not have a changes processable, this method returns <code>undef</code>.</p>
<dt><a name="$group->get_binary_processables()"
>$group->get_binary_processables()</a></dt>
<dd>
<p>Returns all binary (and udeb) processables in $group.</p>
<p>If $group does not have any binary processables then an empty list is returned.</p>
<dt><a name="$group->info"
>$group->info</a></dt>
<dd>
<p>Returns <a href="../Lintian/Collect/Group.html" class="podlinkpod"
>$info</a> element for this group.</p>
<dt><a name="$group->init_shared_cache"
>$group->init_shared_cache</a></dt>
<dd>
<p>Prepare a shared memory cache for all current members of the group. This is solely a memory saving optimization and is not required for correct performance.</p>
<dt><a name="$group->clear_cache"
>$group->clear_cache</a></dt>
<dd>
<p>Discard the info element of all members of this group, so the memory used by it can be reclaimed. Mostly useful when checking a lot of packages (e.g. on lintian.d.o).</p>
</dd>
</dl>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>
<p>Originally written by Niels Thykier <niels@thykier.net> for Lintian.</p>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="SEE_ALSO"
>SEE ALSO</a></h1>
<p>lintian(1)</p>
<p><a href="../Lintian/Processable.html" class="podlinkpod"
>Lintian::Processable</a></p>
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p>
<!-- end doc -->
</body></html>
|