summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-03-20 08:21:26 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-03-20 08:21:26 +0000
commit0ac16dfa54b7331554508679bfe14d7681a38a8a (patch)
tree29d78f182e958a22f3b9daa5273df809aefd1b6f
parent25354c94ce70ec525cb04a4071cb90c80bfc72a6 (diff)
document new stuff
-rw-r--r--usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod b/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod
index ac04a8234c5..7ea3f519043 100644
--- a/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod
+++ b/usr.sbin/pkg_add/pod/OpenBSD::Ustar.pod
@@ -1,4 +1,4 @@
-$OpenBSD: OpenBSD::Ustar.pod,v 1.17 2011/01/02 14:49:49 espie Exp $
+$OpenBSD: OpenBSD::Ustar.pod,v 1.18 2011/03/20 08:21:25 espie Exp $
=head1 NAME
@@ -11,6 +11,7 @@ OpenBSD::Ustar - simple access to Ustar C<tar(1)> archives
open(my $in, "<", $arcnameforreading) or die;
$rdarc = OpenBSD::Ustar->new($in, $state, $destdir);
+ $rdarc->set_description($arcnameforreading);
while (my $o = $rdarc->next) {
# decide whether we want to extract it, change object attributes
$o->create;
@@ -90,6 +91,10 @@ Actual extraction is performed through C<$o-E<gt>create> and is not
mandatory. Thus, client code can control whether it wants to extract archive
elements or not.
+In case of errors, the archive will call C<$state-E<gt>fatal> with a suitable
+error message that contains the last index name processed. The user may
+set an optional archive description with C<set_description>.
+
The C<create> method can take an optional C<$callback> argument, which will
be called regularly while extracting large objects, as C<&$callback($donesize)>,
with C<$donesize> the number of bytes already extracted.