diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-03-30 08:53:36 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-03-30 08:53:36 +0000 |
commit | bba78fc2f2589554632098bceae5cfd9fb2bbea1 (patch) | |
tree | 2e1f2e68ef111c26215e6d2c17e8cd3af6a9dd6f /usr.sbin/pkg_add/OpenBSD | |
parent | 728d20f0b5847190366b286bb8e65c4ed54298d1 (diff) |
do not allow non-sensible stuff in packing-lists.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 0607ebc4817..299822de800 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,4 +1,4 @@ -# $OpenBSD: PackingElement.pm,v 1.7 2004/01/28 22:12:01 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.8 2004/03/30 08:53:35 espie Exp $ # # Copyright (c) 2003 Marc Espie. # @@ -44,7 +44,8 @@ sub Factory if (defined $keyword{$cmd}) { $keyword{$cmd}->add(@_, $args); } else { - OpenBSD::PackingElement::Other->add(@_, "\@$cmd $args"); + print STDERR "Unknown element: \@$cmd $args\n"; + exit(1); } } else { OpenBSD::PackingElement::File->add(@_, $_); @@ -208,9 +209,6 @@ sub add_size sub IsFile() { 1 } -package OpenBSD::PackingElement::Other; -our @ISA=qw(OpenBSD::PackingElement); - package OpenBSD::PackingElement::Ignore; our @ISA=qw(OpenBSD::PackingElement); __PACKAGE__->setKeyword('ignore'); |