diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-09-19 09:30:29 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-09-19 09:30:29 +0000 |
commit | f0aa2121dae808cd866e70cf2ef48384ac18174f (patch) | |
tree | 7e08e756310ca99aa60c9c87c32c8a756683aaf3 /usr.sbin | |
parent | e8761ec5df8a855d0fb6bb258508afbead5e8720 (diff) |
reading a packing-list from a scalar in memory does work.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pod/OpenBSD::PackingList.pod | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pod/OpenBSD::PackingList.pod b/usr.sbin/pkg_add/pod/OpenBSD::PackingList.pod index 1bff56a4fbe..036a084d9fd 100644 --- a/usr.sbin/pkg_add/pod/OpenBSD::PackingList.pod +++ b/usr.sbin/pkg_add/pod/OpenBSD::PackingList.pod @@ -1,4 +1,4 @@ -$OpenBSD: OpenBSD::PackingList.pod,v 1.4 2005/09/08 08:51:27 espie Exp $ +$OpenBSD: OpenBSD::PackingList.pod,v 1.5 2005/09/19 09:30:28 espie Exp $ =head1 NAME @@ -11,7 +11,8 @@ OpenBSD::PackingList - C<pkg_add(1)> packing-list manipulations my $p1 = OpenBSD::PackingList->new(); # empty my $p2 = OpenBSD::PackingList->read($fh); my $p3 = OpenBSD::PackingList->fromfile($filename); - my $p4 = OpenBSD::PackingList->from_installation($pkgname); + my $p4 = OpenBSD::PackingList->fromfile(\$scalar); + my $p5 = OpenBSD::PackingList->from_installation($pkgname); # writing packing-lists $p2->write($fh); @@ -52,6 +53,7 @@ The C<OpenBSD::PackingList> class handles all that. Packing-lists can be obtained using the following methods: from an opened file handle using C<OpenBSD::PackingList-E<gt>read($fh)>, from an existing file using C<OpenBSD::PackingList-E<gt>fromfile($filename)>, +from a scalar in memory using C<OpenBSD::PackingList-E<gt>fromfile(\$scalar)>, or from an installed package using C<OpenBSD::PackingList-E<gt>from_installation($pkgname)>. |