diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2015-01-27 09:35:36 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2015-01-27 09:35:36 +0000 |
commit | fc7f63bf9225da0cc22a5e8dd911b3b2f951a93b (patch) | |
tree | ef7fcf3f61a17b3d37f5de7a3db155fe673ed612 /usr.sbin/pkg_add/OpenBSD/PkgAdd.pm | |
parent | 9a5cd112466f00bfaaa3257295f65a3b699231d9 (diff) |
fix messages of FwUpdate
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PkgAdd.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgAdd.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index 36e14c58269..c950213613b 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgAdd.pm,v 1.82 2015/01/19 09:42:06 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.83 2015/01/27 09:35:35 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -176,6 +176,12 @@ sub updateset_from_location OpenBSD::Handle->from_location($location)); } +sub display_timestamp +{ + my ($state, $pkgname, $timestamp) = @_; + $state->say("#1 signed on #2", $pkgname, $timestamp); +} + OpenBSD::Auto::cache(updater, sub { require OpenBSD::Update; @@ -306,7 +312,7 @@ sub display_timestamp if (!$plist->check_signature($state)) { $state->fatal("#1 is corrupted", $pkgname); } - $state->say("#1 signed on #2", $pkgname, + $state->display_timestamp($pkgname, $plist->get('digital-signature')->iso8601); } |