check_security has been around long enough, no need to check quirks can
authorespie <espie@openbsd.org>
Sat, 25 Nov 2023 10:58:45 +0000 (10:58 +0000)
committerespie <espie@openbsd.org>
Sat, 25 Nov 2023 10:58:45 +0000 (10:58 +0000)
do it

usr.sbin/pkg_add/OpenBSD/PkgAdd.pm

index 32c894d..6e3972c 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.146 2023/11/08 09:51:13 caspar Exp $
+# $OpenBSD: PkgAdd.pm,v 1.147 2023/11/25 10:58:45 espie Exp $
 #
 # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
 #
@@ -307,7 +307,6 @@ sub check_security($set, $state, $plist, $h)
        my ($error, $bad);
        $state->run_quirks(
                sub($quirks) {
-                       return unless $quirks->can("check_security");
                        $bad = $quirks->check_security($plist->fullpkgpath);
                        if (defined $bad) {
                                require OpenBSD::PkgSpec;