summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-11 12:21:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-11 12:21:21 +0000
commit63ddfd51ddaedc7390c3a7435bf25b80b16701d5 (patch)
tree6e18f7b52ecd0172b89090bce998b6c47252f2de /usr.sbin/pkg_add/OpenBSD/UpdateSet.pm
parent1c829fb0f939d9417b3b16b2637885a826516516 (diff)
also get most STDERR messages through the same way
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/UpdateSet.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/UpdateSet.pm20
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)