Lintian::DepMap::Properties(3) | Debian Package Checker | Lintian::DepMap::Properties(3) |
Lintian::DepMap::Properties - Dependencies with properties map/tree creator
use Lintian::DepMap::Properties; my $map = Lintian::DepMap::Properties->new;
Lintian::DepMap::Properties is a simple layer between Lintian::DepMap and the application allowing nodes to have application-defined properties.
E.g.
$map->add('foo', {name => 'John Doe', age => 20});
# pA and pB have no dependency: $map->addp('pA', {name => 'John Doe'}); $map->addp('pB', {name => 'Jane Doe'}); # Df depends on pA and pB: $map->addp('Df', 'p', 'A', 'B', {name => 'Doe Family'});
E.g.
# prints John Doe print $map->getp('foo')->{'name'}; # changes the value of 'name' $map->getp('foo')->{'name'} = 'Jane Doe'; # prints Jane Doe print $map->getp('foo')->{'name'};
Originally written by Raphael Geissert <atomo64@gmail.com> for Lintian.
2019-05-26 | Lintian v2.15.0 |