diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-30 16:32:15 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-30 16:32:15 +0000 |
commit | 3f253f61eca131987f384f2f3b77b6ac8a2262b2 (patch) | |
tree | c8d8c7773fefe2637903c688c7991eeb5f0d1a2d /usr.sbin/pkg_add/OpenBSD/Add.pm | |
parent | d6d5b8a14834bcf7c886975434ca4e9a7df71b6c (diff) |
simplify script handling a bit (they're going to disappear probably anyways).
Remove two passes visitors, we don't use them.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Add.pm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index 98075c365b9..0e042c12e98 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.65 2007/05/30 14:04:51 espie Exp $ +# $OpenBSD: Add.pm,v 1.66 2007/05/30 16:32:14 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -625,6 +625,20 @@ sub copy_info File::Copy::move($self->fullname, $dest); } +package OpenBSD::PackingElement::FREQUIRE; +sub install +{ + my ($self, $state) = @_; + $self->run($state, 'INSTALL'); +} + +package OpenBSD::PackingElement::FINSTALL; +sub install +{ + my ($self, $state) = @_; + $self->run($state, 'PRE-INSTALL'); +} + package OpenBSD::PackingElement::FCONTENTS; sub copy_info { |