summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-10-05 20:04:57 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-10-05 20:04:57 +0000
commit1e68d5eeef80d70a2914212d026fd6be5ff6fa5d (patch)
treeb83cbeaed681b265df229a66bbd2ae323f525228
parentd5b26286d5d56be00d1cc56a3a3e6e7115998305 (diff)
intermediate ::DirlikeObject class, so that all dir objects inherit from
it, including ::DirRm.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm9
1 files changed, 6 insertions, 3 deletions
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 <espie@openbsd.org>
#
@@ -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($)
{