From d71cd6f5feaa22693f0b3cce15ad46e6a772b5ad Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 17 Feb 2016 11:47:03 -0800 Subject: zypper multipackage performance fix helps to remember the values of expensive things that we go off and compute. --- lib/chef/provider/package/zypper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef') diff --git a/lib/chef/provider/package/zypper.rb b/lib/chef/provider/package/zypper.rb index 2441b46013..5ee1dbea8e 100644 --- a/lib/chef/provider/package/zypper.rb +++ b/lib/chef/provider/package/zypper.rb @@ -54,7 +54,7 @@ class Chef end def versions - @versions = + @versions ||= begin raw_versions = package_name_array.map do |package_name| get_versions(package_name) -- cgit v1.2.1