Openbsd-Packinglist

OpenBSD::PackingList(3p) Perl Programmers Reference Guide

Openbsd-Packinglist

OpenBSD::PackingList(3p) Perl Programmers Reference Guide # OpenBSD::PackingList(3p) Perl Programmers Reference Guide NNAAMMEE # OpenBSD::PackingList - "pkg_add(1)" packing-list manipulations SSYYNNOOPPSSIISS # use OpenBSD::PackingList; # different methods to create packing-lists my $p1 = OpenBSD::PackingList->new; # empty my $p2 = OpenBSD::PackingList->read($fh); my $p3 = OpenBSD::PackingList->fromfile($filename); my $p4 = OpenBSD::PackingList->fromfile(\$scalar); my $p5 = OpenBSD::PackingList->from_installation($pkgname); # writing packing-lists $p2->write($fh); $p3->tofile($filename); $p4->to_installation; $p4->to_cache; # building up packing-lists OpenBSD::PackingElement::SUBCLASS->add($plist, @args); my $o = OpenBSD::PackingElement::SUBCLASS->new(@args); $o->add_object($plist); # tests and access $b = $p2->has($name); $b = $p2->get($name); # frequent accesses print $p3->pkgname, $p3->localbase, "\n"; # processing packing-lists $p4->visit('method', @args); # auto visit $p4->method(@args); # signatures if ($p3->signature eq $p4->signature) { } DDEESSCCRRIIPPTTIIOONN # "OpenBSD::PackingList" is the only supported interface for access to packing-list information. ...