diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-22 13:32:51 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-22 13:32:51 +0000 |
commit | 3ac57f843d6c794fc0552f3c05c72ee083482eb8 (patch) | |
tree | 48fd0c3fda1ca51abb35ce0d625cb57e8a7344e8 /usr.sbin/pkg_add | |
parent | e78631e8b7daef8eaa294c98e290ab5647db13b1 (diff) |
extra parameter to give out more info
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm | 7 |
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; |