From: espie Date: Fri, 15 Apr 2022 08:03:33 +0000 (+0000) Subject: we probably already have that info, but in any case, we don't need X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e4189796d0bcd1c1f0a462afe23956efcf96c6c7;p=openbsd we probably already have that info, but in any case, we don't need the full plist for a signature. shaves most of the remaining time with caching active --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index a9c17f7b48c..9a14ae91a1b 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.126 2022/04/13 21:22:40 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.127 2022/04/15 08:03:33 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -37,7 +37,9 @@ sub has_different_sig { my ($plist, $state) = @_; if (!defined $plist->{different_sig}) { - my $n = OpenBSD::PackingList->from_installation($plist->pkgname)->signature; + my $n = + OpenBSD::PackingList->from_installation($plist->pkgname, + \&OpenBSD::PackingList::UpdateInfoOnly)->signature; my $o = $plist->signature; my $r = $n->compare($o, $state); $state->print("Comparing full signature for #1 \"#2\" vs. \"#3\":",