/usr/share/doc/lintian/api.html/Lintian/Lab/ManifestDiff.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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Lintian::Lab::ManifestDiff</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='#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::Lab::ManifestDiff -- Difference representation between two Manifests</p>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>
<pre> use Lintian::Lab::Manifest;
my $olist = Lintian::Lab::Manifest->new ('binary');
my $nlist = Lintian::Lab::Manifest->new ('binary');
$olist->read_list ('old/binary-packages');
$nlist->read_list ('new/binary-packages');
my $diff = $olist->diff($nlist);
foreach my $added (@{ $diff->added }) {
my $entry = $nlist->get (@$added);
# do something
}
foreach my $removed (@{ $diff->removed }) {
my $entry = $olist->get (@$removed);
# do something
}
foreach my $changed (@{ $diff->changed }) {
my $oentry = $olist->get (@$changed);
my $nentry = $nlist->get (@$changed);
# use/diff $oentry and $nentry as needed
}</pre>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>
<p>Instances of this class provides access to the packages list used by the Lab as caches.</p>
<h1><a class='u' href='#___top' title='click to go to top of document'
name="METHODS"
>METHODS</a></h1>
<dl>
<dt><a name="$diff->added"
>$diff->added</a></dt>
<dd>
<p>Returns a listref containing the keys of the elements that has been added.</p>
<p>Each element is a listref of keys; this list (when dereferenced) can be used with the manifest's get method to look up the item.</p>
<dt><a name="$diff->removed"
>$diff->removed</a></dt>
<dd>
<p>Returns a listref containing the keys of the elements that has been removed.</p>
<p>Each element is a listref of keys; this list (when dereferenced) can be used with the manifest's get method to look up the item.</p>
<dt><a name="$diff->changed"
>$diff->changed</a></dt>
<dd>
<p>Returns a listref containing the keys of the elements that has been changed.</p>
<p>Each element is a listref of keys; this list (when dereferenced) can be used with the manifest's get method to look up the item.</p>
<dt><a name="$diff->nlist"
>$diff->nlist</a></dt>
<dd>
<p>Returns the "new" manifest used to create this diff. Note the manifest is not copied and may have been changed since the diff has been created.</p>
<dt><a name="$diff->olist"
>$diff->olist</a></dt>
<dd>
<p>Returns the "orig" manifest used to create this diff. Note the manifest is not copied and may have been changed since the diff has been created.</p>
</dd>
</dl>
<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 class="backlinkbottom"><b><a name="___bottom" href="../../index.html" title="All Documents"><<</a></b></p>
<!-- end doc -->
</body></html>
|