summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2016-05-13 00:22:51 +0000
committerMarc Espie <espie@cvs.openbsd.org>2016-05-13 00:22:51 +0000
commit1a08dbfe776f991224f8c9102b919445aba207cd (patch)
treea403514089ed30ff35b872341723a821ca342fd7
parent413824dbd3271b45e164370efc92bb53fac6364e (diff)
add a stub log for signify, problem noticed by tedu
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgInfo.pm14
1 files changed, 12 insertions, 2 deletions
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 <espie@openbsd.org>
#
@@ -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);
}
}
}