$OpenBSD: patch-lib_puppet_type_package_rb,v 1.1 2016/04/28 11:53:09 jasper Exp $

add new feature flavorable, and switch handling the flavor
as a property instead of a parameter

--- lib/puppet/type/package.rb.orig	Thu Apr 28 12:20:14 2016
+++ lib/puppet/type/package.rb	Thu Apr 28 12:20:48 2016
@@ -65,6 +65,7 @@ module Puppet
       provider-specific.",
       :methods => [:package_settings_insync?, :package_settings, :package_settings=]
     feature :virtual_packages, "The provider accepts virtual package names for install and uninstall."
+    feature :flavorable, "The provider accepts package flavors."
 
     ensurable do
       desc <<-EOT
@@ -442,7 +443,7 @@ module Puppet
       newvalues(:true, :false)
     end
 
-    newparam(:flavor) do
+    newproperty(:flavor, :required_features => :flavorable) do
       desc "OpenBSD supports 'flavors', which are further specifications for
         which type of package you want."
     end
