From 1a08dbfe776f991224f8c9102b919445aba207cd Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 13 May 2016 00:22:51 +0000 Subject: add a stub log for signify, problem noticed by tedu --- usr.sbin/pkg_add/OpenBSD/PkgInfo.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD') diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm index 8540592c3a1..d741045afcc 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgInfo.pm,v 1.36 2015/10/07 17:52:38 jmc Exp $ +# $OpenBSD: PkgInfo.pm,v 1.37 2016/05/13 00:22:50 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -163,6 +163,16 @@ sub setopts } } +sub log +{ + my $self = shift; + if (@_ == 0) { + return $self; + } else { + $self->say(@_); + } +} + package OpenBSD::PkgInfo; use OpenBSD::PackageInfo; use OpenBSD::PackageName; @@ -385,7 +395,7 @@ sub may_check_data $pkgname); } else { if (!$$r->check_signature($state)) { - $state->fatal("#1 is corrupted", $pkgname); + $state->fatal("Couldn't check signature for #1", $pkgname); } } } -- cgit v1.2.3