diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/AddDelete.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/AddDelete.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm index b27ffb8f521..573c0569f5a 100644 --- a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: AddDelete.pm,v 1.6 2009/12/14 09:35:56 espie Exp $ +# $OpenBSD: AddDelete.pm,v 1.7 2009/12/17 11:11:51 espie Exp $ # # Copyright (c) 2007-2009 Marc Espie <espie@openbsd.org> # @@ -222,11 +222,7 @@ sub ntogo { my $self = shift; - if (defined $self->{todo} && $self->{todo} > 0) { - return " ($self->{todo} to go)"; - } else { - return ""; - } + return $self->progress->ntogo($self->{todo}); } sub vstat @@ -368,6 +364,11 @@ sub print print @_; } +sub ntogo +{ + return ""; +} + sub errprint { shift; |