summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-10-05 19:44:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-10-05 19:44:16 +0000
commit7dd131084e34f4727b58d59430a26a16cad19f7d (patch)
tree348383245f157921b7403acf93217f9872c24055 /usr.sbin
parent11c207fc5d4c1c8c68cbd77dd8c3b61785af7a6c (diff)
unbreak pure comments, handle @option at new level.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index 47df169f03f..5de40ed7dec 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.41 2004/10/05 19:35:49 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.42 2004/10/05 19:44:15 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -502,7 +502,7 @@ sub add
$plist->{state}->{nochecksum} = 1;
return undef;
} else {
- return $class->SUPER::add(@args);
+ return $class->SUPER::add($plist, @args);
}
}
@@ -571,15 +571,13 @@ our @ISA=qw(OpenBSD::PackingElement::Meta);
__PACKAGE__->setKeyword('option');
sub keyword() { 'option' }
-sub add
+sub new
{
- my ($class, $plist, @args) = @_;
+ my ($class, @args) = @_;
if ($args[0] eq 'no-default-conflict') {
- shift;
- return OpenBSD::PackingElement::NoDefaultConflict->add($plist);
+ return OpenBSD::PackingElement::NoDefaultConflict->new();
} elsif ($args[0] eq 'manual-installation') {
- shift;
- return OpenBSD::PackingElement::ManualInstallation->add($plist);
+ return OpenBSD::PackingElement::ManualInstallation->new();
} else {
die "Unknown option: $args[0]";
}