From f54c1ecd6e9e41e74fe9a19b9d85a49a4619ab41 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 4 Jan 2014 14:14:55 +0000 Subject: [PATCH] recognize @option firmware --- usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 8 +++++++- usr.sbin/pkg_add/OpenBSD/PackingList.pm | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index f9dd2045c9d..717ca72e7c0 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.219 2014/01/04 01:42:46 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.220 2014/01/04 14:14:55 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -851,6 +851,8 @@ sub new return OpenBSD::PackingElement::NoDefaultConflict->new; } elsif ($args eq 'manual-installation') { return OpenBSD::PackingElement::ManualInstallation->new; + } elsif ($args eq 'firmware') { + return OpenBSD::PackingElement::Firmware->new; } elsif ($args eq 'system-package') { return OpenBSD::PackingElement::SystemPackage->new; } elsif ($args eq 'always-update') { @@ -892,6 +894,10 @@ sub write_no_sig() { } +package OpenBSD::PackingElement::Firmware; +our @ISA=qw(OpenBSD::PackingElement::ManualInstallation); +sub category() { 'firmware' } + package OpenBSD::PackingElement::SystemPackage; our @ISA=qw(OpenBSD::PackingElement::UniqueOption); diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index ab5d5de81f1..a0d8abb5162 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingList.pm,v 1.125 2014/01/04 00:14:08 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.126 2014/01/04 14:14:55 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -438,7 +438,7 @@ sub match_pkgpath } our @unique_categories = - (qw(name url signer digital-signature no-default-conflict manual-installation always-update explicit-update extrainfo localbase arch)); + (qw(name url signer digital-signature no-default-conflict manual-installation firmware always-update explicit-update extrainfo localbase arch)); our @list_categories = (qw(conflict pkgpath incompatibility ask-update updateset depend -- 2.20.1