diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2015-04-06 11:13:42 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2015-04-06 11:13:42 +0000 |
commit | f324afd3447724da03be55fe3d70102ffd9b4dec (patch) | |
tree | 3867ebd8fb606e60bac24686f4af9752c6fdb711 /usr.sbin | |
parent | e04ada812119cb80d2c06f332c9a42d838b35d5b (diff) |
mark installed locations as "trusted" so that pkg_info does not check sigs
on them.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageLocation.pm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm index 593615cf15f..90544ffb8aa 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageLocation.pm,v 1.44 2014/07/10 21:12:33 espie Exp $ +# $OpenBSD: PackageLocation.pm,v 1.45 2015/04/06 11:13:41 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -47,6 +47,11 @@ sub name return $self->{name}; } +sub trusted +{ + return 0; +} + OpenBSD::Auto::cache(pkgname, sub { my $self = shift; @@ -362,4 +367,10 @@ sub plist return OpenBSD::PackingList->from_installation($self->name, $code); } +sub trusted +{ + return 1; +} + + 1; |