diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2019-07-09 11:24:10 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2019-07-09 11:24:10 +0000 |
commit | af32017de46f5f78e6d2e6c0918ca1a64572ae39 (patch) | |
tree | 080994a3095fff9b367e06dc1b63bfa2ffbb5852 | |
parent | 46ff1eb66f2f6118a8b2864bb69b08698f6ab76d (diff) |
knob for testing, do not even look in installurl by default
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/State.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm index c8df6f00a4e..c06b492ebea 100644 --- a/usr.sbin/pkg_add/OpenBSD/State.pm +++ b/usr.sbin/pkg_add/OpenBSD/State.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: State.pm,v 1.56 2019/04/06 10:48:51 espie Exp $ +# $OpenBSD: State.pm,v 1.57 2019/07/09 11:24:09 espie Exp $ # # Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org> # @@ -135,6 +135,7 @@ sub sync_display OpenBSD::Auto::cache(installpath, sub { my $self = shift; + return undef if $self->defines('NOINSTALLPATH'); require OpenBSD::Paths; open(my $fh, '<', OpenBSD::Paths->installurl) or return undef; while (<$fh>) { |