summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-12-03 16:38:29 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-12-03 16:38:29 +0000
commitb14ffc0bbc57b05fe6d917206c4ce3b153ae785d (patch)
tree8900b6d53957dcb4673166da64156079ece175c2
parent08eb5b6eb99bb7d0a817cbfc8da0b4f93fccb411 (diff)
move to using updatedb annotation exclusively
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgAdd.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
index 66c6c50e07e..094db806830 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.148 2023/11/25 17:43:39 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.149 2023/12/03 16:38:28 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -359,7 +359,7 @@ sub find_kept_handle($set, $n, $state)
}
}
$set->check_security($state, $plist, $o);
- if ($set->{quirks} || $plist->has('updatedb')) {
+ if ($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} || $plist->has('updatedb')) {
+ if ($plist->has('updatedb')) {
$handle->location->{repository}->setup_cache($state->{setlist});
}
}