summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index 2f9fa4b56d7..f1af78e8389 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.139 2007/06/17 09:50:02 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.140 2007/06/17 10:44:01 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -586,10 +586,18 @@ sub add
if ($args eq 'no checksum') {
$plist->{state}->{lastfile}->{nochecksum} = 1;
} else {
- die "Unknown tag $args";
+ my $object = $plist->{state}->{lastfileobject};
+ $object->{tags}->{$args} = 1;
+ push(@{$plist->{tags}->{$args}}, $object);
}
}
+package OpenBSD::PackingElement::DefineTag;
+our @ISA=qw(OpenBSD::PackingElement::Meta);
+
+sub keyword() { 'define-tag' }
+__PACKAGE__->register_with_factory;
+
package OpenBSD::PackingElement::symlink;
our @ISA=qw(OpenBSD::PackingElement::Annotation);