summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-12-18 10:39:02 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-12-18 10:39:02 +0000
commit1ba08856790139763683db0060a8ec30056dff37 (patch)
tree4d6c8facc821293e9514d8f7307af2767ca02527 /usr.sbin/pkg_add
parent66067ff912a94e168671a2fbd3ce2b286fa4777a (diff)
bump ->defines up to main state class.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/AddDelete.pm8
-rw-r--r--usr.sbin/pkg_add/OpenBSD/State.pm8
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
index 82296804be1..69f2b20ef44 100644
--- a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
+++ b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: AddDelete.pm,v 1.40 2010/12/05 09:41:55 espie Exp $
+# $OpenBSD: AddDelete.pm,v 1.41 2010/12/18 10:39:01 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@ -285,12 +285,6 @@ sub status
return $self->{status};
}
-sub defines
-{
- my ($self, $k) = @_;
- return $self->{subst}->value($k);
-}
-
sub updateset
{
my $self = shift;
diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm
index 292072eb781..72e41215a08 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.18 2010/10/24 17:04:47 espie Exp $
+# $OpenBSD: State.pm,v 1.19 2010/12/18 10:39:01 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
@@ -329,6 +329,12 @@ sub handle_options
import OpenBSD::State;
}
+sub defines
+{
+ my ($self, $k) = @_;
+ return $self->{subst}->value($k);
+}
+
my @signal_name = ();
sub fillup_names
{