summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2021-11-17 14:59:41 -0800
committerGitHub <noreply@github.com>2021-11-17 14:59:41 -0800
commitca06995f9b0f284c9e1096e8711041714b7f8714 (patch)
tree1a4b9343ec5dbe52ca0d1e829cf55cd25d41215c /lib/chef/resource
parentc615ae3d594ee26746d547f3e25d299645e48190 (diff)
parent0371c9a580401ce9731e6d281f1565b7ef26a511 (diff)
downloadchef-ca06995f9b0f284c9e1096e8711041714b7f8714.tar.gz
Merge pull request #11970 from chef/snehal/fix_version_comparisons_on_upgrade
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/dpkg_package.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/resource/dpkg_package.rb b/lib/chef/resource/dpkg_package.rb
index 1ad460e591..143aaee699 100644
--- a/lib/chef/resource/dpkg_package.rb
+++ b/lib/chef/resource/dpkg_package.rb
@@ -37,6 +37,11 @@ class Chef
property :response_file_variables, Hash,
description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.",
default: {}, desired_state: false
+
+ property :allow_downgrade, [ TrueClass, FalseClass ],
+ description: "Allow downgrading a package to satisfy requested version requirements.",
+ default: true,
+ desired_state: false
end
end
end