summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm7
1 files changed, 4 insertions, 3 deletions
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 <espie@openbsd.org>
#
@@ -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;