summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-01-17 15:54:07 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-01-17 15:54:07 +0000
commitbf4c178306bd896cd85bd43ecff6ae786bfa793d (patch)
tree271e644867afdaa21eb3bb248647c4da30e0d173 /usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
parent6d653e68fc6edbdf410e487501499d6d0c991978 (diff)
do check_digest per plist.
show UNSIGNED packages unconditionally.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PkgAdd.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgAdd.pm17
1 files changed, 5 insertions, 12 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
index 662fc69ac11..c44737bd983 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.45 2014/01/11 11:54:43 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.46 2014/01/17 15:54:06 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -647,7 +647,6 @@ sub iterate
sub check_digital_signature
{
my ($set, $state) = @_;
- $state->{check_digest} //= 0;
for my $handle ($set->newer) {
$state->set_name_from_handle($handle, '+');
my $plist = $handle->plist;
@@ -660,7 +659,7 @@ sub check_digital_signature
$state->fatal("#1 is corrupted",
$plist->pkgname);
}
- $state->{check_digest} = 1;
+ $plist->{check_digest} = 1;
$state->{packages_with_sig}++;
}
} else {
@@ -1071,16 +1070,10 @@ sub finish_display
my ($self, $state) = @_;
OpenBSD::Add::manpages_index($state);
-
# and display delayed thingies.
- if ($state->{packages_with_sig}) {
- $state->print("Packages with signatures: #1",
- $state->{packages_with_sig});
- if ($state->{packages_without_sig}) {
- print ". UNSIGNED PACKAGES: ",
- join(', ', keys %{$state->{packages_without_sig}});
- }
- print "\n";
+ if ($state->{packages_without_sig}) {
+ print "UNSIGNED PACKAGES: ",
+ join(', ', keys %{$state->{packages_without_sig}}), "\n";
}
if (defined $state->{updatedepends} && %{$state->{updatedepends}}) {
print "Forced updates, bogus dependencies for ",