we probably already have that info, but in any case, we don't need
authorespie <espie@openbsd.org>
Fri, 15 Apr 2022 08:03:33 +0000 (08:03 +0000)
committerespie <espie@openbsd.org>
Fri, 15 Apr 2022 08:03:33 +0000 (08:03 +0000)
the full plist for a signature.

shaves most of the remaining time with caching active

usr.sbin/pkg_add/OpenBSD/PkgAdd.pm

index a9c17f7..9a14ae9 100644 (file)
@@ -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 <espie@openbsd.org>
 #
@@ -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\":",