diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-01 13:36:08 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-01 13:36:08 +0000 |
commit | e59d685aaf7437f5be2cdfab00c0fba50557809e (patch) | |
tree | 98eb8276d46d949d9e6151f21408db37ba391c8e /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | fa13a2ae8fb9431b3d8bce588a58129d5e23917a (diff) |
new option 'explicit-update', for firmwares (don't consider these in bulk
updates, only when user asks for them explicitly)
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 2b6e32923c3..40346793d21 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm @@ -1,7 +1,7 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingElement.pm,v 1.167 2009/12/30 09:39:08 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.168 2010/01/01 13:36:07 espie Exp $ # -# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> +# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -774,6 +774,8 @@ sub new return OpenBSD::PackingElement::SystemPackage->new; } elsif ($args eq 'always-update') { return OpenBSD::PackingElement::AlwaysUpdate->new; + } elsif ($args eq 'explicit-update') { + return OpenBSD::PackingElement::ExplicitUpdate->new; } else { die "Unknown option: $args"; } @@ -822,6 +824,13 @@ sub category() 'always-update'; } +package OpenBSD::PackingElement::ExplicitUpdate; +our @ISA=qw(OpenBSD::PackingElement::UniqueOption); + +sub category() +{ + 'explicit-update'; +} # The special elements that don't end in the right place package OpenBSD::PackingElement::ExtraInfo; our @ISA=qw(OpenBSD::PackingElement::Unique OpenBSD::PackingElement::Comment); |