Skip to content

Instantly share code, notes, and snippets.

@redivy
Created March 16, 2010 12:01
Show Gist options
  • Save redivy/333873 to your computer and use it in GitHub Desktop.
Save redivy/333873 to your computer and use it in GitHub Desktop.
--- lib/chef/provider/package/zypper.rb 2010-03-16 14:52:15.000000000 +0300
+++ lib/chef/provider/package/zypper.rb 2010-03-16 14:54:30.000000000 +0300
@@ -79,6 +79,9 @@
raise Chef::Exceptions::Package, "zypper failed - #{status.inspect}!"
end
+ if @candidate_version == ''
+ raise Chef::Exceptions::Package, "zypper does not have a version of package #{@new_resource.package_name}"
+ end
Chef::Log.debug("zypper current resource #{@current_resource}")
@current_resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment