summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-22 13:32:51 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-22 13:32:51 +0000
commit3ac57f843d6c794fc0552f3c05c72ee083482eb8 (patch)
tree48fd0c3fda1ca51abb35ce0d625cb57e8a7344e8 /usr.sbin/pkg_add
parente78631e8b7daef8eaa294c98e290ab5647db13b1 (diff)
extra parameter to give out more info
Diffstat (limited to 'usr.sbin/pkg_add')
-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;