oops, don't load quirks prematurely. noticed by many, myself included
authorespie <espie@openbsd.org>
Mon, 12 Jan 2015 18:27:33 +0000 (18:27 +0000)
committerespie <espie@openbsd.org>
Mon, 12 Jan 2015 18:27:33 +0000 (18:27 +0000)
usr.sbin/pkg_add/OpenBSD/PkgAdd.pm

index 9741e95..c3882b4 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.80 2014/12/24 12:50:22 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.81 2015/01/12 18:27:33 espie Exp $
 #
 # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
 #
@@ -271,6 +271,7 @@ sub check_security
        my ($set, $state, $plist, $h) = @_;
        return if $checked->{$plist->fullpkgpath};
        $checked->{$plist->fullpkgpath} = 1;
+       return if $set->{quirks};
        my ($error, $bad);
        $state->run_quirks(
                sub {