recognize @extraglob for later
authorespie <espie@openbsd.org>
Wed, 8 Jun 2022 14:57:12 +0000 (14:57 +0000)
committerespie <espie@openbsd.org>
Wed, 8 Jun 2022 14:57:12 +0000 (14:57 +0000)
okay sthen@

usr.sbin/pkg_add/OpenBSD/PackingElement.pm

index fcbd23d..9ed19f1 100644 (file)
@@ -1,5 +1,5 @@
 # ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.281 2022/05/26 21:08:52 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.282 2022/06/08 14:57:12 espie Exp $
 #
 # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
 #
@@ -1817,6 +1817,13 @@ sub destate
        &OpenBSD::PackingElement::Extra::destate;
 }
 
+package OpenBSD::PackingElement::ExtraGlob;
+our @ISA=qw(OpenBSD::PackingElement::FileObject);
+
+sub keyword() { 'extraglob' }
+sub absolute_okay() { 1 }
+__PACKAGE__->register_with_factory;
+
 package OpenBSD::PackingElement::SpecialFile;
 our @ISA=qw(OpenBSD::PackingElement::Unique);