summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-12-14 09:35:57 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-12-14 09:35:57 +0000
commit0413aabe3aa04641354d2cd9fc5dec011545b36b (patch)
tree0123a29edfdc90d19e9632753529145ff5dc9e3e /usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm
parentd72188ed9853a90657b50d3f34a9f4558d8a44ec (diff)
fuss about install msgs: new method state->ntogo, use it to annotate more
messages with global progress information. Also, when not finding a suitable update, report it if set is not a simple update. Helps in figuring out cases like gstreamer...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter.pm
index 63918f53bc8..c20670e7b46 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.23 2009/12/05 10:12:19 espie Exp $
+# $OpenBSD: ProgressMeter.pm,v 1.24 2009/12/14 09:35:56 espie Exp $
#
# Copyright (c) 2004-2007 Marc Espie <espie@openbsd.org>
#
@@ -155,9 +155,8 @@ sub next
return unless $isatty;
$self->clear;
- $todo //= 0;
- print "$header: ok", $todo > 0 ? " ($todo to go)" : "", "\n";
-
+ $todo //= '';
+ print "$header: ok$todo\n";
}
1;