From 3ac57f843d6c794fc0552f3c05c72ee083482eb8 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 22 Nov 2009 13:32:51 +0000 Subject: extra parameter to give out more info --- usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pkg_add') diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm index 7b0b23083e2..9ba34c138d6 100644 --- a/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm +++ b/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: ProgressMeter.pm,v 1.18 2009/11/16 23:02:57 espie Exp $ +# $OpenBSD: ProgressMeter.pm,v 1.19 2009/11/22 13:32:50 espie Exp $ # # Copyright (c) 2004-2007 Marc Espie # @@ -151,10 +151,11 @@ sub errprint sub next { - my $self = shift; + my ($self, $todo) = @_; return unless $isatty; $self->clear; - print "$header: complete\n"; + print "$header: complete ", defined $todo ? "($todo to go)\n" : "\n"; + } 1; -- cgit v1.2.3