From 1e68d5eeef80d70a2914212d026fd6be5ff6fa5d Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 5 Oct 2004 20:04:57 +0000 Subject: intermediate ::DirlikeObject class, so that all dir objects inherit from it, including ::DirRm. --- usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD') diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 5de40ed7dec..7495416960d 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.42 2004/10/05 19:44:15 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.43 2004/10/05 20:04:56 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie # @@ -912,14 +912,17 @@ our @ISA=qw(OpenBSD::PackingElement::ExeclikeAction); __PACKAGE__->setKeyword('extraunexec'); sub keyword() { "extraunexec" } -package OpenBSD::PackingElement::DirRm; +package OpenBSD::PackingElement::DirlikeObject; our @ISA=qw(OpenBSD::PackingElement::FileObject); +package OpenBSD::PackingElement::DirRm; +our @ISA=qw(OpenBSD::PackingElement::DirlikeObject); + __PACKAGE__->setKeyword('dirrm'); sub keyword() { "dirrm" } package OpenBSD::PackingElement::DirBase; -our @ISA=qw(OpenBSD::PackingElement::FileObject); +our @ISA=qw(OpenBSD::PackingElement::DirlikeObject); sub stringize($) { -- cgit v1.2.3