Skip to content

Commit

Permalink
recognize future updatedb tagged packages
Browse files Browse the repository at this point in the history
  • Loading branch information
marcespie committed Nov 25, 2023
1 parent c83d527 commit 0272aeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 <espie@openbsd.org>
#
Expand Down Expand Up @@ -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});
Expand Down Expand Up @@ -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});
}
}
Expand Down

0 comments on commit 0272aeb

Please sign in to comment.