summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2022-02-15 08:02:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2022-02-15 08:02:04 +0000
commitf5bd332afeff0b8bb9bc0a8b4a354ae4361c7038 (patch)
treecd22111956335d7e470b10c6785ccb096ffc5cef
parent6b4ce82af2839ab6806abc7b5379f202bcd87693 (diff)
make use of pkg_* infra simplifications
okay afresh1@
-rw-r--r--usr.sbin/fw_update/fw_update.sh8
1 files 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 <afresh1@openbsd.org>
#
@@ -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 $$;