summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PkgCheck.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCheck.pm20
1 files changed, 4 insertions, 16 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
index 1dbb673e298..48a7e76a8ab 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCheck.pm,v 1.14 2010/06/14 08:16:14 espie Exp $
+# $OpenBSD: PkgCheck.pm,v 1.15 2010/06/15 08:26:39 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -213,23 +213,11 @@ sub find_dependencies
}
}
-package OpenBSD::Log;
-use OpenBSD::Error;
-our @ISA = qw(OpenBSD::Error);
-
-sub set_context
-{
- &OpenBSD::Error::set_pkgname;
-}
-
-sub dump
-{
- &OpenBSD::Error::delayed_output;
-}
-
package OpenBSD::PkgCheck::State;
our @ISA = qw(OpenBSD::AddCreateDelete::State);
+use OpenBSD::Log;
+
sub init
{
my $self = shift;
@@ -243,7 +231,7 @@ sub log
if (@_ == 0) {
return $self->{l};
} else {
- $self->{l}->print($self->f(@_), "\n");
+ $self->{l}->say(@_);
}
}