From 5cabf9e88a3f734e93f78171e48b45303cbf40f4 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 11 Nov 2004 12:29:21 +0000 Subject: store a ref to %forced in $state, for access anywhere. --- usr.sbin/pkg_add/pkg_delete | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/pkg_add/pkg_delete') diff --git a/usr.sbin/pkg_add/pkg_delete b/usr.sbin/pkg_add/pkg_delete index 2b32d8705ea..504a8f78580 100644 --- a/usr.sbin/pkg_add/pkg_delete +++ b/usr.sbin/pkg_add/pkg_delete @@ -1,6 +1,6 @@ #!/usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_delete,v 1.73 2004/11/11 11:36:26 espie Exp $ +# $OpenBSD: pkg_delete,v 1.74 2004/11/11 12:29:20 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie # @@ -69,6 +69,7 @@ $state->{very_verbose} = $opt_v; $state->{beverbose} = $opt_n || ($opt_v >= 2); $state->{extra} = $opt_c; $state->{dont_run_scripts} = $opt_I; +$state->{forced} = \%forced; $ENV{'PKG_DELETE_EXTRA'} = $state->{extra} ? "Yes" : "No"; if ($opt_x && $state->{beverbose}) { -- cgit v1.2.3