diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/UpdateSet.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/UpdateSet.pm | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm index 8c3012b52d7..6502274f7d1 100644 --- a/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm +++ b/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: UpdateSet.pm,v 1.19 2009/11/11 12:04:19 espie Exp $ +# $OpenBSD: UpdateSet.pm,v 1.20 2009/11/11 12:21:20 espie Exp $ # # Copyright (c) 2007 Marc Espie <espie@openbsd.org> # @@ -100,6 +100,18 @@ sub say $self->progress->print(@_, "\n"); } +sub errprint +{ + my $self = shift; + $self->progress->errprint(@_); +} + +sub errsay +{ + my $self = shift; + $self->progress->errprint(@_, "\n"); +} + sub system { my $self = shift; @@ -176,6 +188,12 @@ sub print print @_; } +sub errprint +{ + shift; + print STDERR @_; +} + # an UpdateSet is a list of packages to remove/install. # it contains three things: # -> a list of older packages to remove (installed locations) |