summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-17 11:47:03 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-17 11:54:48 -0800
commitd71cd6f5feaa22693f0b3cce15ad46e6a772b5ad (patch)
tree8cc8db21dac59a842f2d0a73b6c36c5e36d7a779
parent83bab84325ce969d03d6f6373497fa8b21e80b53 (diff)
downloadchef-d71cd6f5feaa22693f0b3cce15ad46e6a772b5ad.tar.gz
zypper multipackage performance fixlcg/fix-zypper
helps to remember the values of expensive things that we go off and compute.
-rw-r--r--lib/chef/provider/package/zypper.rb2
1 files changed, 1 insertions, 1 deletions
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)