diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 6a07b725e42..a61cf1db79d 100644 --- a/usr.sbin/pkg_add/OpenBSD/Update.pm +++ b/usr.sbin/pkg_add/OpenBSD/Update.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Update.pm,v 1.15 2004/11/09 09:58:56 espie Exp $ +# $OpenBSD: Update.pm,v 1.16 2004/11/09 10:17:52 espie Exp $ # # Copyright (c) 2004 Marc Espie <espie@openbsd.org> # @@ -48,6 +48,19 @@ sub unmark_lib { } +sub extract_with_pm +{ + require OpenBSD::ProgressMeter; + + my ($self, $state) = @_; + + $self->extract($state); + if (defined $self->{size}) { + $state->{donesize} += $self->{size}; + OpenBSD::ProgressMeter::show($state->{donesize}, $state->{totsize}); + } +} + package OpenBSD::PackingElement::FileBase; use File::Temp qw/tempfile/; |