From f5bd332afeff0b8bb9bc0a8b4a354ae4361c7038 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 15 Feb 2022 08:02:04 +0000 Subject: make use of pkg_* infra simplifications okay afresh1@ --- usr.sbin/fw_update/fw_update.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.sbin/fw_update/fw_update.sh b/usr.sbin/fw_update/fw_update.sh index d8779488b9a..1398b0f2b27 100644 --- a/usr.sbin/fw_update/fw_update.sh +++ b/usr.sbin/fw_update/fw_update.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_update.sh,v 1.37 2022/02/11 00:46:58 afresh1 Exp $ +# $OpenBSD: fw_update.sh,v 1.38 2022/02/15 08:02:03 espie Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -206,13 +206,11 @@ lock_db() { perl <<'EOL' |& use v5.16; use warnings; - use OpenBSD::PackageInfo qw< lock_db unlock_db >; - use OpenBSD::BaseState; + use OpenBSD::PackageInfo qw< lock_db >; $|=1; - lock_db(0, 'OpenBSD::BaseState'); - END { unlock_db } + lock_db(0); $SIG{TERM} = sub { exit }; say $$; -- cgit v1.2.3