From 9c45d37d980fac26bd67d5fbeef5e91ee40d4718 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 30 Jan 2021 10:24:19 +0000 Subject: [PATCH] for now, do not try to install quirks in case we're running "not" the better thing to do would be to pseudo-install it under /tmp so we can run it, but it requires way more changes --- usr.sbin/pkg_add/OpenBSD/AddDelete.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm index 4aa0e549b45..5d5ab0d192f 100644 --- a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: AddDelete.pm,v 1.93 2020/01/11 13:46:39 espie Exp $ +# $OpenBSD: AddDelete.pm,v 1.94 2021/01/30 10:24:19 espie Exp $ # # Copyright (c) 2007-2010 Marc Espie # @@ -351,7 +351,7 @@ sub run_quirks # interface version number. $state->{quirks} = OpenBSD::Quirks->new(1); }; - if ($@) { + if ($@ && !$state->{not}) { my $show = $state->verbose >= 2; if (!$show) { my $l = $state->repo->installed->match_locations(OpenBSD::Search::Stem->new('quirks')); -- 2.20.1