diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-08-01 10:26:28 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-08-01 10:26:28 +0000 |
commit | ba44b8dde5a824fc2d1101cdf40b601c06defee4 (patch) | |
tree | c453c356bca688f7e81d28955c34aae15da44d16 /usr.sbin/pkg_add | |
parent | ed22b82cb369262eb6e4773b14ec4b5f2cffbb76 (diff) |
adjust position of test so that it does something !
avoid a lot of extra stupid printing.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm index 8d9f8e43b9c..23f5fa81779 100644 --- a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm +++ b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Term.pm,v 1.12 2010/06/30 10:51:04 espie Exp $ +# $OpenBSD: Term.pm,v 1.13 2010/08/01 10:26:27 espie Exp $ # # Copyright (c) 2004-2007 Marc Espie <espie@openbsd.org> # @@ -157,7 +157,6 @@ sub _show $d.="|$extra"; $prefix++; } - return if $d eq $self->{lastdisplay} && !$self->{continued}; if ($self->{width} > length($d)) { if ($self->{cleareol}) { $d .= $self->{cleareol}; @@ -165,6 +164,9 @@ sub _show $d .= ' 'x($self->{width} - length($d) - 1); } } + + return if $d eq $self->{lastdisplay} && !$self->{continued}; + if (!$self->{continued} && defined $self->{hpa}) { if (defined $stars && defined $self->{stars}) { $prefix += $self->{stars}; |