From: espie Date: Sat, 25 Nov 2023 17:43:39 +0000 (+0000) Subject: recognize future updatedb tagged packages X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0272aeb89386a7c27c0ca922d2c8b31741bb31a2;p=openbsd recognize future updatedb tagged packages --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index 6e3972cb962..66c6c50e07e 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.147 2023/11/25 10:58:45 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.148 2023/11/25 17:43:39 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -359,7 +359,7 @@ sub find_kept_handle($set, $n, $state) } } $set->check_security($state, $plist, $o); - if ($set->{quirks}) { + if ($set->{quirks} || $plist->has('updatedb')) { # The installed package has inst: for a location, we want # the newer one (which is identical) $n->location->{repository}->setup_cache($state->{setlist}); @@ -843,7 +843,7 @@ sub really_add($set, $state) add_installed($pkgname); delete $handle->{partial}; OpenBSD::PkgCfl::register($handle, $state); - if ($set->{quirks}) { + if ($set->{quirks} || $plist->has('updatedb')) { $handle->location->{repository}->setup_cache($state->{setlist}); } }