diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-15 08:30:38 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-15 08:30:38 +0000 |
commit | eae35a77d4f96d86b051b4cc5e5af1af64e0e372 (patch) | |
tree | b9888137feb81c2e787282b8a2734ce41b9dc142 /usr.sbin/pkg_add/OpenBSD | |
parent | b614d6372df417f295742c2983c19bf94e8d6131 (diff) |
with more primitive primitives, we don't need to override so much...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm index c0a6a4b6363..f00667ea766 100644 --- a/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: AddCreateDelete.pm,v 1.4 2010/06/09 11:57:21 espie Exp $ +# $OpenBSD: AddCreateDelete.pm,v 1.5 2010/06/15 08:30:37 espie Exp $ # # Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org> # @@ -62,28 +62,16 @@ sub opt return $self->{opt}{$k}; } -sub print +sub _print { my $self = shift; - $self->progress->print($self->f(@_)); + $self->progress->print(@_); } -sub say +sub _errprint { my $self = shift; - $self->progress->print($self->f(@_), "\n"); -} - -sub errprint -{ - my $self = shift; - $self->progress->errprint($self->f(@_)); -} - -sub errsay -{ - my $self = shift; - $self->progress->errprint($self->f(@_), "\n"); + $self->progress->_errprint(@_); } package OpenBSD::AddCreateDelete; |