From edfad5cf06d4460baaab1aa31fbb7317939c8a85 Mon Sep 17 00:00:00 2001 From: Jordan Evans Date: Mon, 28 Dec 2015 11:08:01 -0800 Subject: Use platform version parser to parse supports in metadata Previously supports was using the cookbook version parser, which would not correctly parse all platform versions. --- lib/chef/cookbook/metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb index e9509be38c..0892d85749 100644 --- a/lib/chef/cookbook/metadata.rb +++ b/lib/chef/cookbook/metadata.rb @@ -746,7 +746,7 @@ OBSOLETED end def validate_version_constraint(caller_name, dep_name, constraint_str) - Chef::VersionConstraint.new(constraint_str) + Chef::VersionConstraint::Platform.new(constraint_str) rescue Chef::Exceptions::InvalidVersionConstraint => e Log.debug(e) -- cgit v1.2.1